Skip to content

Instantly share code, notes, and snippets.

@ecin
Created October 28, 2013 14:54
Show Gist options
  • Save ecin/7198173 to your computer and use it in GitHub Desktop.
Save ecin/7198173 to your computer and use it in GitHub Desktop.
git post-commit signature
#!/bin/sh
#
# Sign the just-made commit with a globally configured GPG key.
git commit --amend --allow-empty --gpg-sign=`git config user.signingkey` --reuse-message=HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment