zl程序教程

您现在的位置是:首页 >  工具

当前栏目

git config

Git config
2023-09-11 14:14:22 时间

显示配置

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.