Skip to content

Instantly share code, notes, and snippets.

@HristoKolev
Last active January 28, 2025 11:52
Show Gist options
  • Save HristoKolev/f7389d95d79e2d7d949301b444d651e5 to your computer and use it in GitHub Desktop.
Save HristoKolev/f7389d95d79e2d7d949301b444d651e5 to your computer and use it in GitHub Desktop.

Configuring git to use SSH (a little misleading calling it gpg.format) for signing commits:

git config --global gpg.format ssh

Configuring git to sign commits with your SSH key:

git config --global user.signingkey $env:USERPROFILE\.ssh\id_ed25519.pub

git config --global gpg.ssh.allowedSignersFile $env:USERPROFILE\.ssh\allowed_signers

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