git config
git config --global alias.st status
git config --global alias.sh stash
git config --global alias.co checkout
git config --global alias.ad add
git config --global alias.ci commit
git config --global alias.br branch
git config --global alias.pr pull --rebase
git config --global alias.ps push
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 --all"
.gitconfig
# mac
vi $HOME/.gitconfig
# windows
cd C:\Users\${username}\.gitconfig
[alias]
co = checkout
ci = commit
st = status
sh = stash
ad = add
br = branch
pr = pull --rebase
ps = push
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all