This cheatsheet is to assist anyone new with Git with becoming familiar with common scenarious.
git checkout HEAD -- my-file.txt
git reset HEAD -- .
git reset --hard # Reset to code base
git revert <commit>
git push -f origin <commit_id>:<branch_name>
git reset --hard <commit_id>
git pull origin <branch_name>
git reset --hard
git clean -f -d -x
git pull
git add <file(s)>
git stash
git checkout <branch>
git stash pop
git add --all .
git push origin --delete [branch]
git branch --delete [branch] [branch2] ...
git fetch
git fetch --prune
git push --all