Git: Some basics


Running reminders on some super-basic Git commands. (Also: GitHub and Code School have a fun fifteen-minute primer.)

git init: builds .git directory containing metadata and history
git add: stages a file for commit; can stage folders, filetype wildcards (ex. *.txt)</span>

git add .
git commit -m "Stages all indexed additions or modifications"
git push

git add . -A
git commit -m "Stages all indexed changes, including file deletions"
git push

git checkout: move to branch
git branch -a: list branches
git pull: pull changes from remote