Dou*_*ney 3 git shell terminal github
就在几天前,我能够完美地使用git.
今天,我试着在我自己的公共仓库上提交git并收到这条消息:
git error: cannot run /usr/local/bin/gpg:
No such file or directory error: could not run gpg.
fatal: failed to write commit object
Run Code Online (Sandbox Code Playgroud)
我最终安装了gtg并运行了Github的指令来获取配置的gtg等.
现在,commit命令有效但我必须为每次提交输入我的gtg密码.
我理解这是更安全的,可能是更好的使用git的方法,但是当我能够简单地提交而没有任何gtg错误时发生了什么?我喜欢在我推送时输入我的Github.com凭据时只需处理身份验证.
有没有办法禁用gtg所以git error: cannot run /usr/local/bin/gpg
我提交时没有收到错误?
一些额外的细节:
and*_*lrc 25
以下命令的输出是什么.我怀疑你有commit.gpgsign=true
git config --global --list | grep commit
Run Code Online (Sandbox Code Playgroud)
你可以用它来禁用它
git config --global --add commit.gpgsign false
Run Code Online (Sandbox Code Playgroud)
或者从中手动删除~/.gitconfig
.