aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-06-23 22:50:15 +0800
committerAaron LI <aly@aaronly.me>2017-06-23 22:50:15 +0800
commit44c048adfce9ed70fe81615fad1c57cc0d120dc2 (patch)
treeab710aa71b043a2610f37e976a028c87a99ed58b
parent536a9cd2f3c3734b8255e6abe5940ea905048177 (diff)
downloaddotfiles-44c048adfce9ed70fe81615fad1c57cc0d120dc2.tar.bz2
gitconfig: Sign every tag but not every commit
-rw-r--r--_gitconfig15
1 files changed, 13 insertions, 2 deletions
diff --git a/_gitconfig b/_gitconfig
index f78dbc2..f0ea859 100644
--- a/_gitconfig
+++ b/_gitconfig
@@ -1,12 +1,18 @@
#
# ~/.gitconfig
-# User Git configuration file
+# User's global Git configuration file
#
# Credit:
# * https://gist.github.com/pksunkara/988716
#
+# References:
+# [1] A Git Horror Story: Repository Integrity with Signed Commits
+# https://mikegerwitz.com/papers/git-horror-story.html
+# [2] What are the advantages and disadvantages of cryptographically
+# signing commits and tags in Git?
+# https://softwareengineering.stackexchange.com/a/212216
+#
# Aaron LI
-# 2017-05-27
#
[user]
@@ -18,6 +24,11 @@
default = simple
[commit]
+ # Sign every commit
+ #gpgSign = true
+
+[tag]
+ # Sign every tag
gpgSign = true
[color]