Created
October 28, 2013 14:54
-
-
Save ecin/7198173 to your computer and use it in GitHub Desktop.
git post-commit signature
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
#!/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