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