austin1howard austin1howard - 7 months ago 46
Git Question

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.

Answer

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