curl -o ~/.git-prompt.sh
https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
Run this command once
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"