Last updated: November 2026
Use this page to sign Git commits and tags in GitKraken Desktop with either GPG or SSH keys so hosting providers can verify your identity.
Requirements and limits
- Scope: Commit and tag signing with GPG or SSH keys
- GPG requirement: Install GPG before configuring signing in GitKraken Desktop
- Restart requirement: Close and reopen GitKraken Desktop after installing GPG
- SSH signing setup: Requires a
.pubsigning key, and anallowed_signersfile to verify SSH signatures - Host verification note: GitHub and GitLab support SSH-signed commit verification; Bitbucket does not
- Verification behavior: Signed commits show a badge in the Commit Panel with signature details on hover
Quick Start
To sign commits with GPG:
- Install GPG for your operating system (Gpg4win on Windows,
brew install gpgon macOS, or your Linux package manager). - Close and reopen GitKraken Desktop.
- Go to Preferences > Commit Signing.
- Select a Signing Key from the dropdown, or click Generate new GPG Key.
- Set the GPG Program path if it is not auto-detected.
- Enable Sign Commits by Default and/or Sign Tags by Default.
- Click Copy GPG Public Key in Preferences > Commit Signing and upload the key to your hosting service (GitHub, GitLab, or Bitbucket).
To sign commits with SSH:
- Generate an SSH key.
- Go to Preferences > Commit Signing, set the GPG Format to SSH, and select your
.pubkey file. - Create an
allowed_signersfile and select it in Allowed Signers File. - Enable Sign Commits by Default.
Signed commits display a badge next to the SHA in the Commit Panel. Hover over it to view signature details.
What commit signing is
Git lets you commit with any name and email address. To prove that a commit is yours, you can sign commits and annotated tags with a GPG or SSH key pair.
When you sign a commit, anyone with your public key can verify that you created it. If you upload your public key to a hosting service such as GitHub, the service shows your signed commits as verified.
How to sign commits with GPG
To sign with GPG, install GPG, set up a key in GitKraken Desktop, and upload the public key to your hosting service.
GPG requirements
Before signing commits, install and configure GPG.
Note: Close GitKraken Desktop before installing GPG.
- Windows: Use Gpg4win and follow the installer.
- Mac: Use Homebrew:
brew install gpg - Linux: Use your package manager:
- Debian/Ubuntu:
apt install gnupg - Fedora:
dnf install gnupg2 - CentOS/RHEL:
yum install gnupg2
- Debian/Ubuntu:
Other downloads are at gnupg.org.
To check that GPG is installed, run:
gpg --version

Note: If gpg is not an alias for gpg2, run the commands with gpg2 instead.
How to generate a GPG key in GitKraken Desktop
After you install GPG:
- Go to Preferences > Commit Signing.
- Click Generate new GPG Key.
- (Optional) Enter a passphrase before generating.

Note: Make sure GPG is configured in GitKraken Desktop. See How to configure GPG in GitKraken Desktop.
How to configure GPG in GitKraken Desktop
- Go to Preferences > Commit Signing.
- Select a Signing Key from the dropdown list. If the list is empty:
- Set the GPG Program path.
- Restart GitKraken Desktop after installing GPG.
- If GitKraken Desktop does not detect the GPG Program location, enter it or click Browse. To find the path, run:
which gpg # macOS/Linux where gpg # Windows
Browse to GPG executable. - Enable Sign Commits by Default and/or Sign Tags by Default as needed.
How to verify signed commits
Signed commits show a badge next to the SHA in the Commit Panel.

Hover over the badge to see the signature details:

Common GPG signature codes:
GOODSIG: Valid signature.EXPSIG: Signature is expired.EXPKEYSIG: Signed with expired key.REVKEYSIG: Signed with revoked key.BADSIG: Signature not verified.ERRSIG: Unable to check signature (missing key or unsupported algorithm).
How to upload a GPG key to your hosting service
To have your hosting service show signed commits as verified:
- In GitKraken Desktop, go to Preferences > Commit Signing and click Copy GPG Public Key.
- Add the key to your hosting service:
How to edit a GPG key
To add an email address to a key or renew it, use the GPG command line:
- List your keys:
gpg --list-secret-keys --keyid-format LONG
List GPG secret keys. - Open the key for editing:
gpg --edit-key YOUR_KEY_ID - Run the commands you need:
adduid: Add an email addressdeluid: Remove an email addresstrust: Update the trust levelexpire: Change the expiration datesave: Save and exit
For every option, see GNU’s full GPG key guide.
After editing, upload the key to your hosting service again. See How to upload a GPG key to your hosting service.
How to delete a GPG key
To delete a key, run this command followed by your key ID or name:
gpg --delete-secret-keys


How to sign commits with SSH
GitKraken Desktop signs with SSH through the Git selected in Preferences > General > Git Executable. If that Git’s OpenSSH version is too old to sign commits, the Git Executable setting shows a warning with the detected version.
SSH signing requirements
- macOS/Linux: Git and OpenSSH are usually preinstalled.
git -v ssh -V - Windows: Install Git Bash.
How to enable SSH signing
-
Create SSH key:
ssh-keygen -t ed25519 -C "[email protected]"
Generating SSH key. -
Set GPG Format to SSH:
Preferences > Commit Signing > GPG Format → select SSH. -
Select signing key:
In Signing Key, browse to the.pubkey. -
Create allowed_signers file:
touch ~/.ssh/allowed_signers echo "$(git config --get user.email) namespaces="git" $(cat ~/.ssh/YOUR_KEY.pub)" >> ~/.ssh/allowed_signersIn Preferences > Commit Signing, select this file in Allowed Signers File.
-
Enable signing by default:
Preferences > Commit Signing → enable Sign Commits by Default and/or Sign Tags by Default. -
Add SSH Key to Host:
- GitHub SSH setup
- GitLab SSH setup
- ⚠️ Bitbucket does not support SSH-signed commit verification.
pre{position:relative;min-height:3em}
.copy-btn{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;height:28px;padding:0 8px;background:rgba(128,128,128,.12);border:1px solid rgba(128,128,128,.2);border-radius:4px;cursor:pointer;color:#999;opacity:0;transition:opacity .15s,background .15s,color .15s;font-size:11px;font-family:sans-serif}
pre:hover .copy-btn{opacity:1}
.copy-btn:hover{background:rgba(128,128,128,.25);color:#555}
.copy-btn.copied{color:#22c55e;border-color:rgba(34,197,94,.3)}
(function(){var C=’Copy’,K=’Copied!’;function cp(t){if(navigator.clipboard&&window.isSecureContext)return navigator.clipboard.writeText(t);var x=document.createElement(‘textarea’);x.value=t;x.style.cssText=’position:fixed;opacity:0′;document.body.appendChild(x);x.select();try{document.execCommand(‘copy’)}catch(e){}document.body.removeChild(x);return Promise.resolve()}function init(){document.querySelectorAll(‘pre’).forEach(function(p){if(p.querySelector(‘.copy-btn’))return;var b=document.createElement(‘button’);b.className=’copy-btn’;b.setAttribute(‘aria-label’,’Copy code’);b.innerHTML=C;p.appendChild(b);b.addEventListener(‘click’,function(){var el=p.querySelector(‘code’)||p,cl=el.cloneNode(true),bn=cl.querySelector(‘.copy-btn’);if(bn)bn.remove();cp((cl.innerText||cl.textContent).trimEnd()).then(function(){b.innerHTML=K;b.classList.add(‘copied’);setTimeout(function(){b.innerHTML=C;b.classList.remove(‘copied’)},2000)})})})}document.readyState===’loading’?document.addEventListener(‘DOMContentLoaded’,init):init()})()