Hi Windows users,
I can now signed my commits on Github using Git 2.18.0 and Github Desktop 1.6.1.
Here is what I have done:
- add
C:\Program Files\Git\usr\binto the environment PATH (depends on your Git install) to allow Windows to locate thegpg.exeprogram - generate a GPG key and add it to Github: https://help.github.com/articles/generating-a-new-gpg-key (if you don't want to type a passphrase on every commit, you need to press "Enter" when the console will prompt you to type a passphrase)
- configure the Git
.gitconfigfile properly:
[user]
name = Xavier Foucrier
email = YOUR_GITHUB_EMAIL
signingkey = YOUR_SIGNING_KEY
[gpg]
program = gpg.exe
[commit]
gpgsign = true
this file is located in the
%USERPROFILE%directory, ie:C:\Users\Xavier\.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/#telling-git-about-your-gpg-key-1.
That's all folks! 🎉