Better log
Usage: git lg
(see log) or git lg -p
(see changed lines)
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Undo last commit (not pushed)
Usage: git undo
git config --global alias.undo "reset --soft HEAD~1"