Signing Commits in Git

There are some great resources for getting set up with signing Git commits and tags with a GPG key: https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work https://help.github.com/articles/signing-commits-using-gpg/ After following instructions, I still got the following error: error: gpg failed to sign the data fatal: failed to write commit object Below is a sequence of commands that got everything working properly: # Assumes homebrew and existing key-pair brew install pinentry-mac # Get the secret key value gpg2 --list-secret-keys | grep ^sec git config --global user....

2016-09-05 · 1 min · 133 words · Nathaniel Hoag