How can I remove an entry in global configuration with git config?

前端 未结 7 1823
不思量自难忘°
不思量自难忘° 2020-11-28 17:51

I ran a global configuration command in git to exclude certain files using a .gitignore_global file:

git config --global core.excludesfile ~/.gitignore_globa         


        
7条回答
  •  悲&欢浪女
    2020-11-28 17:52

    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.

提交回复
热议问题