A simple git cheatsheet.
git branch
git branch -a
git checkout -b
git checkout branch_name
git push origin branch_name
git branch -m new_name
git branch -d branch_name
git push origin :branch_name
git branch --merged | grep -E -v "(^\*|master)"| xargs -n1 echo git branch -d
git log --oneline
git log -2
git log -p -2
git diff
git diff myfile
git blame myfile
git remote show origin
git clean -f
git clean -df
git checkout -- .
git reset HEAD myfile
git pull --tags
git checkout tag_name
git tag
git tag -a tag_name -m "tag message"
git push --tags
git stash save "stash name" && git stash
git stash list
git stash pop