git常用别名
在~/.gitconfig
文件中设置
alias = !git config --global --list | grep ^alias
br = branch
ci = commit
co = checkout
head = rev-list -n1 --abbrev-commit HEAD
hist = log --graph --format=format:\"%C(red)%h%C(reset) %C(yellow)%ad%C(reset) | %s %C(green)\\[%an\\]%C(reset)%C(bold blue)%d%C(reset)\" --abbrev-commit --date=short
root = rev-parse --show-toplevel
st = status