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

前端 未结 7 1773
不思量自难忘°
不思量自难忘° 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 18:17

    You can use the --unset flag of git config to do this like so:

    git config --global --unset user.name
    git config --global --unset user.email
    

    If you have more variables for one config you can use:

    git config --global --unset-all user.name
    
    0 讨论(0)
提交回复
热议问题