How to disable git gpg signing

前端 未结 4 606
执念已碎
执念已碎 2021-02-02 06:36

I\'m using git gpg signing. I want to disable it. I\'ve set .gitconfig

[user]
    name = NAME
    email = EMAIL
    signingkey = KEY
...
[commit]
           


        
相关标签:
4条回答
  • 2021-02-02 06:36

    To temporarily disable GPG signing for the next commit:

    git -c commit.gpgsign=false commit
    
    0 讨论(0)
  • 2021-02-02 06:38

    You can disable this by running git config commit.gpgsign false This sets the configuration locally instead of globally.

    Putting this setting in .gitconfig worked for me with what you had, without the [user] configuration:

    [commit]
        gpgsign = false
    
    0 讨论(0)
  • 2021-02-02 06:58

    To disable Git GPG signing for every repository on your computer

    git config --global commit.gpgsign false
    

    To disable Git GPG signing for a single repository

    git config commit.gpgsign false
    

    If you want to enable GPG signing again just replace false with true

    0 讨论(0)
  • 2021-02-02 06:59

    To unsign the last commit:

    git commit --amend --no-gpg-sign
    

    -no-gpg-sign

    Countermand commit.gpgSign configuration variable that is set to force each and every commit to be signed.

    0 讨论(0)
提交回复
热议问题