我正在使用Git GPG签名,想要禁用它。我已经设置了.gitconfig
文件。
[user]
name = NAME
email = EMAIL
signingkey = KEY
...
[commit]
gpgsign = false
我的提交仍然默认使用签名。
附注:我还在Sourcetree中禁用了Repository/ Repository Settings/Security
选项卡。不管是Sourcetree还是终端都会强制使用gpg。
我正在使用Git GPG签名,想要禁用它。我已经设置了.gitconfig
文件。
[user]
name = NAME
email = EMAIL
signingkey = KEY
...
[commit]
gpgsign = false
我的提交仍然默认使用签名。
附注:我还在Sourcetree中禁用了Repository/ Repository Settings/Security
选项卡。不管是Sourcetree还是终端都会强制使用gpg。
您可以通过运行git config commit.gpgsign false
来禁用此功能。这将在本地而不是全局设置配置。
将此设置放入.gitconfig对我有效,无需[user]配置:
[commit]
gpgsign = false
暂时禁用下一次提交的 GPG 签名:
git -c commit.gpgsign=false commit
git commit --disable-sign [...]
的快捷方式? - JobaDinizgit config --global commit.gpgsign false
禁用单个 Git 存储库的 GPG 签名
git config commit.gpgsign false
如果你想再次启用GPG签名,只需将false
替换为true
即可。
git config commit.gpgsign false
,谢谢伙计 - undefined