posts:Git:notes: add commit signing example.
authorW. Trevor King <wking@tremily.us>
Thu, 30 Aug 2012 12:15:14 +0000 (08:15 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 30 Aug 2012 12:15:14 +0000 (08:15 -0400)
posts/Git/notes.org

index 73fee98d36f6fee559b4cd53942761642fa0f964..84958f05ce0d69747c6ec2651a950f36419d653c 100644 (file)
@@ -919,6 +919,15 @@ Then send off an updated version:
 
 See =gitworkflows(7)= for other good ideas.
 
+** Signing commits with GPG
+
+Since version 1.7.9, Git can sign commits with =-S=.
+
+    : $ git commit -S -m 'Look, a signed commit!'
+    : $ git log --show-signature
+
+One more reason to be running =gpg-agent=.
+
 * Troubleshooting
 ** Git commit hangs with no output