Hi Windows users,
I can now sign my commits on Github using Git 2.18.0 and Github Desktop 1.6.1.
Here is what I have done:
- generate a GPG key and add it to Github: https://help.github.com/articles/generating-a-new-gpg-key
- configure the Git
.gitconfig
file properly:
[user]
name = Jens Forstmann
email = 19289807+JensForstmann@users.noreply.github.com
signingkey = C43831562AA73BB1
[gpg]
program = "C:\\Program Files\\Git\\usr\\bin\\gpg.exe"
[commit]
gpgsign = true
[tag]
gpgsign = true
this file is located in the
%USERPROFILE%
directory, ie:C:\Users\Jens\.gitconfig
YOUR_SIGNING_KEY should follow the GPG key ID convention, like this example: https://help.github.com/articles/telling-git-about-your-signing-key
After a git commit
yout can verify the signing with git log --show-signature
.
That's all folks! 🎉
Don't ask how I found this, because I really don't know... but I just wanted to say.. THANK YOU SO MUCH!
When I tried to follow the instructions on the gist you forked this from, I was getting an config error.. Nothing was working, until I found your gist.
The problem I was having was in my
[gpg] program =
section, I hadC:\Program Files\Git\usr\bin\gpg.exe
MY dumbass forgot that you has to escape the slashes. Again, thanks a million.