Need help with git commit - Error : "error: cannot run gpg: No such file or directory error: could not run gpg. fatal: failed to write commit object"support (self.git)

参考:https://www.reddit.com/r/git/comments/4jflp1/need_help_with_git_commit_error_error_cannot_run/

It looks like you have configured git to automatically sign commits - if that isn't what you want, turn it off via git config --global commit.gpgsign false. If you did intend to sign your commits, then you'll need to properly configure either gpg or gpg2 on your system.

意思就是如果不需要进行加密,执行如下命令,后正常提交了。

git config --global commit.gpgsign false.

 

posted @ 2017-01-04 00:42  香巴拉  阅读(884)  评论(0编辑  收藏  举报