Repo of all the Git commands i come across as useful. Updated frequently
git branch --contains $COMMIT_ID
This would list out all the branches that contains that commit. Adding {--a} option would also search through remote branches
git reset --hard
This would undo all local changes you made to files in a branch
git checkout $BRANCH_NAME --force
This forcefully checks out of a branch
git branch -m [old] [new]
This renames a branch to your preffered name