git常用别名设置,保存一份

git配置别名设置,保存一份

若git  config  --global  xxxx 设置,则文件一般在 C:\Users\Administrator\.gitconfig

 

[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
co = checkout
ci = commit
br = branch
st = status

posted @ 2018-05-29 15:41  现世安稳。  阅读(332)  评论(0编辑  收藏  举报