git常用配置

user.name=Chuck Lu
user.email=email@domain.com
credential.helper=store  是否记住密码
color.branch.upstream=green   branch的upstream的颜色
winupdater.recentlyseenversion=2.18.0.windows.1
http.proxy=       代理

push.default=upstream    push的时候默认的action

pull.rebase=false
fetch.prune=false
rebase.autostash=false
http.sslbackend=openssl
http.sslverify=false

 

https://stackoverflow.com/questions/24864700/fatal-the-upstream-branch-of-your-current-branch-does-not-match-the-name-of-you

https://stackoverflow.com/questions/948354/default-behavior-of-git-push-without-a-branch-specified/948397#948397

Command line examples:

To view the current configuration:

git config --global push.default

 

To set a new configuration:

git config --global push.default current

 

配置上游分支颜色

git config --global color.branch.upstream "blue bold"

 

posted @ 2018-07-25 16:49  ChuckLu  阅读(469)  评论(0编辑  收藏  举报