Every day in class, we are going to be interacting with git - and if you do things out of order, it can be very frustrating so let's make sure we have the right flow
$ git clone https://github.com/[YOUR_USER_NAME]/DAT_SF_18
$ git remote add instructor https://github.com/ga-students/DAT_SF_18
$ git status
- Check Status
- add (stage) any changed files before commiting
- commit - WITH A MESSAGE!
- Push the files to your personal repo (origin master)
- Check for a clean status
- Pull the new files from the instructor repor
$ git status
$ git add folder1/file1.ipynb
$ git add folder2/file2.csv
$ git commit -m "I'm cleaning up my repo before class"
$ git push origin master
$ git status
$ git pull instructor master
-
Forgetting to add a commit message - this will cause a text editor called VIM to open. It should look somethign like the image below. To solve this, enter a message using VIM (good instructions here).
-
You see a message about a .swp file. The image looks something like the image below. This is caused by exiting the terminal in the middle of a commit. To solve this, you need to delete the .swp file, following instructions here.: