A short cheat sheet for saving your arse with version control.
Create the repo git init
git add -A
git commit -m "initial commit"
git remote add origin "github url"
git remote -v
git push origin master
git pull origin master
git reset --hard
git log
git status
git clone "repo url"