Skip to content

Instantly share code, notes, and snippets.

@contolini
Created June 26, 2017 23:43
Show Gist options
  • Save contolini/e78f07517def0d70597551653b22bd11 to your computer and use it in GitHub Desktop.
Save contolini/e78f07517def0d70597551653b22bd11 to your computer and use it in GitHub Desktop.
Fix git commit signing on Mac OS X

If you suddenly start seeing

error: cannot run gpg1: No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object

when attempting to commit changes on Mac OS X, run

brew install gpg1
git config --global gpg.program gpg1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment