Skip to content

Instantly share code, notes, and snippets.

@norio-nomura
Last active October 26, 2020 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norio-nomura/6583358a430d4e75b88865ceb5da241d to your computer and use it in GitHub Desktop.
Save norio-nomura/6583358a430d4e75b88865ceb5da241d to your computer and use it in GitHub Desktop.
`git commit` 時に自動でPGP署名する設定
git config user.signingkey <secret key id>
git config gpg.program /path/to/gpg-batch-notty.sh
git config commit.gpgsign true
#!/bin/sh
/usr/local/MacGPG2/bin/gpg2 --batch --no-tty $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment