Skip to content

Instantly share code, notes, and snippets.

@kwsp
Created August 14, 2024 15:36
Show Gist options
  • Save kwsp/c69a58d086e280ccb63e1a70420ee62c to your computer and use it in GitHub Desktop.
Save kwsp/c69a58d086e280ccb63e1a70420ee62c to your computer and use it in GitHub Desktop.
Setup GPG for git

Windows

I use git from scoop. Open git bash to access the gpg binary. If you install gpg from scoop it will not work as git doesn't know about it.

Import existing private key

gpg --import private.key

Force git to sign

git config --global user.signingKey [LONG GPG ID]
git config --global commit.gpgSign true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment