Search code examples
gitgnupgpgpgit-sign

Sign git commits with GPG


Is there a way to sign git commits with gpg? It's so easy with tags (using -s instead of -a), it seems there would be a similar function for commits.


Solution

  • git commit -S (requires git >= 1.7.9).