Skip to content

Instantly share code, notes, and snippets.

@mrsinguyen
Created January 2, 2019 08:07
Show Gist options
  • Save mrsinguyen/4b797e9d4e66f140d46fe412fc88bc9b to your computer and use it in GitHub Desktop.
Save mrsinguyen/4b797e9d4e66f140d46fe412fc88bc9b to your computer and use it in GitHub Desktop.
Fix the error failed to sign the data
@mrsinguyen
Copy link
Author

brew upgrade gnupg  # This has a make step which takes a while
brew link --overwrite gnupg
brew install pinentry-mac
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
killall gpg-agent
git config --global gpg.program gpg
git config --global commit.gpgsign true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment