Git Cheats

Here are some useful commands to use with git


Abandon a merge

git reset --hard HEAD

Find out which branch a commit is on

git branch -a --contains <commit>