Git Workshop
Git Command Cheat Sheet
git init
This initializes the working directory–you will notice a new directory created, named “.git”.
git add .
git add tells git to take a snapshot of the contents of all files under the current directory (note the ‘.’). This snapshot is now stored in a temporary staging area which git calls the “index”. You can permanently store the contents of the index in the repository with git commit:
git commit -m "commit message"
git commit stores the version of your project you added above into your git repo.