Git config配置

git获取帮助
git help config git config --help man git-config
 
git config --global user.name "fuleying"
git config --global user.email "fuleying@gmail.com"
git config --global core.editor vim
git config --global core.pager more
 
# 颜色配置
git config --global color.status auto 
git config --global color.diff auto 
git config --global color.branch auto 
git config --global color.interactive auto
 
#快捷方式配置
git config --global alias.st status
git config --global alias.ci commit
git config --global alias.df diff
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"

git config --list
posted on 2016-03-28 23:22  fuleying  阅读(543)  评论(0编辑  收藏  举报