If we have time:
git clone [repo-url]
git pull # syncs latest version from the master repo to your local repo
[edit the code]
git add [file] # stages code for commit (git remove does not unstage, it stages a deletion, we'll get to unstaging in a bit)
git commit # create a record of the changes you've made
git push # sync your local changes to the master repo
echo "Fancy code will go here"
echo "More fancy code"
git checkout -- [file]
git reset --soft HEAD
git reset --hard HEAD~x
git reset --soft HEAD~1 # keeps changes, but undoes the commit
git revert [commit-hash]
git commit
git pull