Git: How can I reset a config parameter after I have accidentally changed it?

后端 未结 1 1243
醉梦人生
醉梦人生 2020-12-30 21:10

I was exploring the git config options using tab completion in bash, and without really thinking, I did this:

git config --global user.signingke         


        
相关标签:
1条回答
  • 2020-12-30 21:43

    Command

    git config --global section.key value
    

    does nothing more than editing file ~/.gitconfig with content like this:

    [section]
    key = value
    

    So, you can simply edit this file and fix it.

    Also, you can use command to remove offending setting:

    git config --global --unset section.key
    
    0 讨论(0)
提交回复
热议问题