Skip to content

Instantly share code, notes, and snippets.

@xavierlepretre
Last active May 15, 2025 08:57
Show Gist options
  • Save xavierlepretre/8700107182f7a6fb94932245c535c33f to your computer and use it in GitHub Desktop.
Save xavierlepretre/8700107182f7a6fb94932245c535c33f to your computer and use it in GitHub Desktop.
Sign your last commit with GPG, when the private key is protected with a passphrase.
GPG_TTY=$(tty) git commit --amend --no-edit -n -S
# The GPG identity email should match the committer email.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment