参考: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.