git 常用快捷键设置。
vim ~/.gitconfig
在 alias 一节中加入如下设置:
st = status ci = commit co = checkout br = branch lg = log --date=format:'%Y-%m-%d %H:%M:%S' --color --pretty=format:'%Cred%h%Creset %Cgreen%ad%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit ls = !"for k in `git branch|perl -pe s/^..//`;do echo `git show --pretty=format:\"%Cgreen%ci %Cblue%cr%Creset\" $k|head -n 1`\\\t$k;done|sort" ld = reflog show --date=format:'%Y-%m-%d %H:%M:%S'