Just a couple days ago I was able to use git perfectly fine.
Today, I tried to git commit on my own public repo and got this message:
git error: cannot run /usr/local/bin/gpg:
No such file or directory error: could not run gpg.
fatal: failed to write commit object
I ended up installing gtg and ran through Github's instructions on getting gtg configured and such.
Now, the commit command works but I have to enter my gtg password for every commit I do.
I understand this is more secure and probably a better way to use git, but what happened to when I was able to simply commit without any gtg errors? I liked only having to deal with authentication when I would push, entering my Github.com credentials.
Is there a way to disable gtg so I don't get the git error: cannot run /usr/local/bin/gpg
error when I commit?
Some additional details:
What is the output of the command below. I suspect you have commit.gpgsign=true
git config --global --list | grep commit
You can disable it with
git config --global --add commit.gpgsign false
or by removing the line manually from ~/.gitconfig
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With