Skip to content

Instantly share code, notes, and snippets.

@iamcryptoki
Last active November 11, 2019 15:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamcryptoki/9676828eca766490391a177b19a96b2f to your computer and use it in GitHub Desktop.
Save iamcryptoki/9676828eca766490391a177b19a96b2f to your computer and use it in GitHub Desktop.
Configure Git to sign commits and tags using GPG.
git config --global user.signingKey <PASTE_YOUR_KEY_ID_HERE>
git config --global commit.gpgsign true
git config --global tag.gpgsign true
@hannesvdvreken
Copy link

@iamcryptoki

does git config --global tag.gpgsign true actually do something for you? For me it doesn't. But commit.gpgsign does.

$ git tag -m 2.4.2 2.4.2
$ git tag -v 2.4.2
object 1fab5b41fae1b9a919fa6754bc4b59b448447081
type commit
tag 2.4.2
tagger Hannes Van De Vreken <my-email-address> 1506408886 +0200

2.4.2
error: no signature found

@codekandis
Copy link

codekandis commented Nov 7, 2017

@hannesvdvreken While I found commit.gpgsign I tried tag.gpgsign intentionally and
had not luck as you hadn't. After digging I come to the conclusion there
is no config like that.
http://disq.us/p/1mhd62s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment