Setting up commit signing on Windows 10/11
π Created on December 21, 2021.Install prerequisites
- Install GitHub Desktop
- Install Git for Windows
- Install GPG for Windows
Setup your gpg key
Follow the steps in GitHubs GPG creation guide and make note of your GPG key ID, you'll need that later on.
Tell git about your new key
$ git config --global user.signingkey <Your GPG key ID>
$ git config --global commit.gpgsign true
$ where.exe gpg
$ git config --global gpg.program "<Path from above command>"
π₯you are now setup to use commit signing in both git
and GitHub Desktop.