git config

显示配置

git config --global -l

 

修改配置

git config --global --edit

 

git status显示的文件名,支持中文

git config --global core.quotepath off

 

取消配置

https://stackoverflow.com/questions/11868447/how-can-i-remove-an-entry-in-global-configuration-with-git-config

I'm not sure what you mean by "undo" the change. You can remove the core.excludesfile setting like this:

git config --global --unset core.excludesfile

And of course you can simply edit the config file:

git config --global --edit

...and then remove the setting by hand.

 

查看某个配置项的value是从哪里来的

A git config --show-origin --get user.email should than show you from where a config value is loaded/resolved.

 

posted @ 2016-05-03 13:20  ChuckLu  阅读(303)  评论(0编辑  收藏  举报