Closed iheartrats closed 7 years ago
So...git is kind of different in that unlike dropbox or google drive, it won't sync files between your local computer and the cloud (your repository on Github) unless you explicitly select those files, commit them, and push them up to Github 🚀 ☁️ . So it gives you much greater control, and retains a lot more information about what exactly has changed between revisions/additions/deletions in each file.
In addition, if you are just creating folders and those folders don't have any files in them, git may not add them, because it doesn't see that as a "change". It only recognizes a change when you put a file inside a 📁 , and then do the add (or stage) ➡️ commit ➡️ push steps.
So, rules for steps you should take:
Done! Hope this helps. Good luck.
R
I am having trouble reconciling the folders and files that are on my git and computers. I am switching back and forth between a laptop and a desktop at home. I am under the impression that git is acting essentially as a "google drive" for the files. But I have somehow managed to make a ton of different folders. I just cleared out the old ones and re-connected my katie_smith repository on my desktop. I added in a couple folders directly into the "Files" pane and they appeared in my local drive, but not in the web git repository and not on to the local repository on my lap top (after pushing and pulling). The folders are identical "c:/R/katie_smith". I don't know if I am just not really understanding git or if I have a setting wrong or something. There is not an option to create the folders in the web repository so I don't really know what is going on. Halplz.