Created
March 30, 2019 22:22
-
-
Save jamedge/25b5faa62f445f04a1e26cff61cd8407 to your computer and use it in GitHub Desktop.
[git: config gpg signing setup] Set up the automatic signing of each commit #git #shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For setting up gpg not to require password upon each commit, do this (https://stackoverflow.com/questions/39494631/gpg-failed-to-sign-the-data-fatal-failed-to-write-commit-object-git-2-10-0) | |
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 | |
# to test it, use this | |
echo "test" | gpg --clearsign # on linux it's gpg2 but brew stays as gpg | |
# to show the signature of a commit message | |
git log --show-signature -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment