Git commit signing exists precisely to answer “who actually vouches for this commit?” — and almost nobody uses it, and almost nothing forces the question. A 2025 longitudinal study of GitHub commit history found that only about 9.65% of commits pushed directly by human users carried any cryptographic signature at all, once bots and GitHub’s own web-flow commits were excluded from the count (arXiv:2504.19215, 2025). Meanwhile the one Git-native control that would actually enforce signing on merge, merge.verifySignatures, ships off by default and stays off unless a maintainer deliberately turns it on. Git built a real trust mechanism into its object model. The ecosystem, by and large, declined to use it.

The green “Verified” badge on GitHub is supposed to stand in for all of this — and it quietly answers a narrower question than most readers assume. Before getting to that, it’s worth walking the mechanism honestly: three generations of signing technology, and what each one actually verifies.
The Adoption Gap: A Mechanism Almost Nobody Uses, and Nothing Enforces
Git has supported commit and tag signing since early in its history — git tag -s for a signed tag, git commit -S for a signed commit — documented in the “Signing Your Work” chapter of the Pro Git book. The mechanism is old, well-documented, and, on the numbers, barely used. The 2025 study’s higher figure — roughly 17.6% of all commits in its corpus — includes bot commits and GitHub’s automatic web-flow signing, both of which sign without any human ever running git commit -S. Strip those out and look only at commits a human pushed directly, and the figure drops to that ~9.65%. Of the commits that are signed, the same study found GPG accounts for roughly 99% of them, with SSH and Sigstore signing combined making up under 1.1% — three generations of tooling, and the newest two have barely registered yet.
The adoption number would matter less if something downstream caught the gap. Nothing does, by default. git merge --verify-signatures will refuse to merge a tip commit whose signature isn’t good — but the config knob that makes this automatic, merge.verifySignatures, defaults to false. Most CI pipelines never invoke git verify-commit at all. And the features people often assume are Git enforcement — “require signed commits” as a branch-protection toggle, mandatory reviews, CODEOWNERS routing — are forge features layered on top of Git by GitHub or GitLab, not anything the git binary itself checks. Git’s own native enforcement surface is smaller: a pre-receive hook on a server you control is the one point where Git itself can refuse an unsigned push before it lands, since client-side hooks aren’t cloned and aren’t enforced on anyone else’s machine.

So the honest starting position for anything that follows is this: Git shipped a trust layer, the tooling to use it has gotten steadily easier across three generations, and usage still lags far behind the mechanism’s maturity. The rest of this article is about why, and about what changes once a team actually decides to close that gap.
Three Generations of Signing, One Question: Who Vouches for This Commit?
Generation One: GPG — the original mechanism, and why key management killed adoption
GPG signing is Git’s original trust mechanism, and it still accounts for the overwhelming majority of signatures that do exist. The workflow is straightforward to describe and, in practice, heavy to maintain: generate a GPG keypair, configure user.signingkey to point Git at it, then sign commits with -S or tags with -s. Verification checks the signature against a public key the verifier already trusts — either fetched from a keyserver, published somewhere out-of-band, or exchanged directly.
The friction isn’t in the signing command. It’s in everything around it: generating and safely backing up a long-lived private key, publishing the public half somewhere verifiers can find it, handling key expiry and rotation, and — the part that quietly kills most attempts — figuring out what to do when a key is compromised or a contributor loses access to it. None of that is Git’s fault; it’s the standing cost of any web-of-trust key-management model, and it’s why GPG signing has stayed a minority practice for two decades despite being available the entire time. A key you have to actively maintain is a key most people eventually stop maintaining.

Generation Two: SSH signing — reusing a key you already have
SSH-based commit signing arrived in Git 2.34 (November 2021): setting gpg.format = ssh lets any SSH keypair sign commits and tags, verified against an allowed_signers file (pointed to by gpg.ssh.allowedSignersFile) that maps identities to public keys — a flat text file, not a keyserver. Git’s own 2.34 release notes describe it plainly: “in addition to GnuPG, ssh public crypto can be used for object and push-cert signing,” with a caveat that the feature needs OpenSSH 8.8 or newer to work correctly.
The usability case is the whole story here. Most developers already have an SSH keypair sitting in ~/.ssh, generated the day they first cloned a private repository — signing with it costs one config line and a shared allowed_signers file, not a new key-management program. That’s a materially lower bar than GPG’s onboarding, which is exactly why SSH signing exists. It comes with a trade worth naming honestly: reusing the same key for repository access and for signing couples two blast radii that used to be separate. Compromise the SSH key and an attacker doesn’t just gain push access — they can also forge convincing signatures with the same credential.

Generation Three: Sigstore/gitsign — keyless signing with a public transparency log
The newest generation removes the long-lived key from the picture entirely. Sigstore’s gitsign signs commits using short-lived certificates issued against an OpenID Connect (OIDC) identity — a GitHub, Google, or Microsoft login — rather than a keypair anyone has to generate, store, or rotate. The certificate gitsign obtains at signing time is deliberately short-lived (the project’s own documentation describes validity windows on the order of minutes), and every signing event is recorded in Rekor, Sigstore’s public, append-only transparency log. Because the signature and the fact that it happened are both logged publicly, a signature stays independently verifiable long after its issuing certificate has expired — you check the log entry, not a still-valid key.
The trade is the cleanest of the three: instead of “prove you hold a long-lived secret,” it asks “prove you controlled an identity-provider account at the moment of signing,” with the transaction publicly and permanently logged. That closes the key-custody problem completely — no key to lose, steal, or forget to rotate — but introduces a different cost: Rekor’s log is public by design, so the identity tied to every signature (typically an email address) becomes part of a permanent, publicly queryable record. For an open-source maintainer that’s often acceptable, even desirable. For an organization with privacy constraints on employee identifiers, it’s a real design conversation, not a footnote.

The three generations, side by side
| GPG | SSH signing | Sigstore (gitsign) | |
|---|---|---|---|
| Available since | Git’s original signing mechanism | Git 2.34, November 2021 | External tool; not built into core Git |
| What you manage long-term | A GPG keypair, its expiry, revocation, and public-key distribution | An SSH keypair you likely already hold for access | Nothing long-lived — a fresh short-lived certificate is issued per signature |
| Verification anchor | A GPG public key the verifier already trusts | An allowed_signers file mapping identities to public keys | A Rekor transparency-log entry plus a certificate chain to an OIDC identity |
| Onboarding friction | High — keygen, secure backup, keyserver or out-of-band publishing | Low — one config line and a shared file, reusing an existing key | Medium — needs an OIDC login (interactively or via CI) at sign time, plus gitsign installed |
| Real-world share of signed commits (2025 study) | ~99% | Combined with Sigstore, under 1.1% | Combined with SSH, under 1.1% |
| Honest cost | Key-management burden is the entire reason adoption stayed low | Signing key and access key share one blast radius | Signer identity is permanently, publicly logged in Rekor |
The Verification Surface: What Each Check Actually Proves
Signing a commit is only half the mechanism; the other half is someone actually checking it, and Git exposes several distinct surfaces for that — none of which run automatically unless a human or a pipeline deliberately invokes them.
git log --pretty="%h %G? %aN %s" prints a one-character signature-status code per commit: G for a good signature, B for bad, U for a good signature of unknown validity, X/Y for a good signature that’s expired or made with an expired key, R for a good signature from a revoked key, E for unverifiable, and N for no signature at all — documented in git-scm.com’s pretty-formats reference. It’s informational only: printing %G? doesn’t gate anything, it just tells a human (or a script that chooses to parse it) what’s there.
git verify-commit and git verify-tag do the actual cryptographic check directly against a specific commit or tag, returning a non-zero exit code on failure — which makes them scriptable as a CI gate, but only if something in the pipeline is deliberately calling them. And git merge --verify-signatures (extended to the pull path since Git 1.8.3) will refuse to complete a merge if the tip commit being merged doesn’t carry a good signature — checking only the tip, not every commit behind it — with merge.verifySignatures as the config knob that makes this automatic. As already established, that knob ships false.

| Verification surface | What it actually checks | What it does not prove | Runs by default? |
|---|---|---|---|
%G? in git log --pretty | Per-commit signature status: good / bad / unknown / expired / revoked / unverifiable / unsigned | Nothing on its own — purely informational unless something reads and acts on the output | No — display only |
git verify-commit / git verify-tag | Cryptographic validity of one specific signature against your keyring or allowed_signers file | Whether anyone actually runs it — must be invoked explicitly, by a human or a CI step | No — manual or CI-scripted only |
git merge --verify-signatures / merge.verifySignatures | Refuses a merge if the tip commit’s signature isn’t good | Every commit merged in behind that tip — only the tip is checked | No — merge.verifySignatures defaults to false |
| GitHub “Verified” badge | That a signature traces to a key GitHub recognizes as currently valid | Whether the named human author wrote the code — see below | Display-only; a GitHub feature, not a Git one |
The Payoff: What the Verified Badge Actually Proves — and What It Doesn’t
Here is the gap that makes all of the above more than a compliance checklist. GitHub signs commits made through its own web editor, the merge button, and Codespaces using its own GPG key — the “web-flow” key, whose public half GitHub itself publishes for anyone to check — and according to GitHub’s own documentation, “commits signed by GitHub will have a verified status.” That status is displayed identically to a commit a contributor signed themselves with their own key. There is no visual distinction in the badge between “a human proved their identity and signed this” and “GitHub’s server produced this and signed it with GitHub’s key.”
Read the badge precisely, and it says: this signature traces to a key GitHub currently recognizes as valid. It does not say: the person whose name is on this commit wrote it. Those are different claims, and the badge conflates them by design — not maliciously, but because “verified” is doing double duty as a label for two different underlying events. A contributor who never generated a key, never ran git commit -S, and edited a file through GitHub’s web interface will see the exact same green badge as a contributor who signed with a carefully managed GPG key of their own.

Signed tags and signed commits answer different questions, and the distinction matters here too. A signed tag (git tag -s) attests that a specific person vouches for the state of history at that point — commonly used to mark a release. A signed commit (git commit -S) attests that a specific person authored that snapshot and its parent-pointer chain, one link at a time. A project that only signs release tags has said nothing about who authored any individual commit that went into the release; a project that signs every commit but never tags a release has said nothing, cryptographically, about which exact state shipped. Knowing which question you actually need answered — “who wrote this line” versus “what exact state did we release” — determines which one to require.
And underneath both of these sits a fact worth stating plainly: outside of signing, Git’s author and committer fields are free-form strings — user.name and user.email — that Git never verifies against anything. Anyone with write access can set them to any value, and git blame will faithfully report whatever was typed there. A companion piece on Git’s hash chain covers exactly how spoofable those fields are on their own; the short version is that signing is the only Git mechanism that binds a commit to a verifiable identity, and everything upstream of a signature — including the name on the commit — is a convenience label, not a security claim.
This isn’t just a human-authorship problem anymore, either. As more commits get generated by AI coding agents rather than typed by a person, “who — or what — actually produced this change” stops being hypothetical, and the review discipline teams apply to AI-generated pull requests and the human review layer over agent output is the same instinct this article makes explicit for signing: don’t let a green status symbol answer a question it was never built to answer.
What a Team That Wants Real Commit Provenance Should Actually Turn On
Assuming a team has read this far and wants the gap closed rather than just understood, here’s what that costs in practice, option by option.
Turn on SSH commit signing organization-wide. This is the highest-leverage, lowest-friction move available: most engineers already have an SSH key, the config change is one line (gpg.format = ssh) plus a shared allowed_signers file, and it requires no new key-management program. The honest cost: signing and repository-access now share one key, so a compromised SSH key has a wider blast radius than before. Decide up front whether that coupling is acceptable, or whether high-value repositories warrant a dedicated signing key.
Enforce at the forge and in CI, not through merge.verifySignatures alone. Because that config option defaults to false and is a local, opt-in setting, relying on every contributor to enable it themselves is a hope, not a control. Two enforcement points actually work: a forge-level “require signed commits” branch-protection rule (a GitHub/GitLab feature, not something Git itself provides) and a CI step that runs git verify-commit and fails the build on anything unsigned. If a team runs its own Git server, a pre-receive hook is the one place Git itself can refuse an unsigned push outright — client-side hooks don’t travel with a clone, which is why the supply-chain risk of a mutable reference — a tag, a branch, anything reassignable — keeps showing up as the soft spot in pipelines that assume more enforcement exists than actually does.
Consider Sigstore/gitsign where CI-driven, keyless provenance is the goal. It’s the best fit for automated pipelines and build systems specifically because there’s no long-lived secret sitting in a CI runner waiting to be exfiltrated — the trade is closer to what a short-lived credential buys over a permanently stored one in other authentication contexts. The honest cost: it needs working OIDC infrastructure, the tooling is the newest and least battle-tested of the three generations, and every signature permanently and publicly logs the signer’s identity in Rekor — a real consideration for organizations with internal-identity privacy requirements, not a hypothetical one.
Decide which question actually needs answering, and sign for that question specifically. Sign every commit if the goal is per-author provenance across ongoing history. Sign release tags if the goal is “prove exactly what state we shipped.” Do both if a team genuinely needs both answers — they are not substitutes for each other, and treating one as covering the other is how audit stories quietly stop matching reality. The same discipline applies as automated systems take on more of the commit volume: a secured agentic development pipeline still needs a real answer to “who — or what process — actually authorized this change,” and a badge that only proves a signature traced to a recognized key was never going to be that answer on its own.
None of these options is free, and none is optional if “verified” is meant to carry the weight teams already put on it. The mechanism has existed, in improving form, for two decades. What’s been missing isn’t the technology — it’s someone deciding the badge should mean what it looks like it means, then doing the unglamorous work of making that true.
❓ Frequently Asked Questions
What percentage of Git commits are actually signed? A 2025 study of GitHub commit history (arXiv:2504.19215) found about 17.6% of commits in its corpus carried a signature, but that figure includes bots and GitHub’s automatic web-flow signing. Restricted to commits pushed directly by human users, the figure drops to roughly 9.65%. Of the commits that are signed, the same study found GPG accounts for about 99% of them, with SSH and Sigstore signing combined making up under 1.1%.
Does GitHub’s “Verified” badge mean a human’s identity was confirmed? Not necessarily. GitHub signs commits made through its own web editor, merge button, and Codespaces with its own web-flow GPG key, and those display the identical “Verified” badge as a commit a contributor signed with their own key. The badge confirms a signature traces to a key GitHub currently recognizes as valid — it does not, by itself, confirm the named human authored the code.
Is SSH commit signing as secure as GPG signing? It verifies the same underlying claim — that a specific keyholder signed this commit — through a different, lower-friction mechanism (an allowed_signers file instead of a keyserver or web of trust). The trade-off is that SSH signing typically reuses a key that already grants repository access, coupling that key’s blast radius to both authentication and signing, whereas a dedicated GPG signing key can be kept separate from access credentials.
What is Sigstore’s gitsign, and do I need to manage a private key? No — that’s the point of it. gitsign issues a short-lived signing certificate tied to an OIDC identity (a GitHub, Google, or Microsoft login) at the moment of signing, rather than requiring a long-lived keypair. Every signing event is recorded in Rekor, Sigstore’s public transparency log, so the signature stays verifiable after the certificate expires. The trade is that the signer’s identity becomes part of a permanent, public record.
Does merge.verifySignatures stop unsigned commits from merging by default? No. git merge --verify-signatures will refuse a merge whose tip commit lacks a good signature, but the config option that makes this automatic, merge.verifySignatures, defaults to false. Without it explicitly enabled — or an equivalent CI check — unsigned commits merge freely.
Should a project sign commits, sign tags, or both? They answer different questions. A signed commit attests that a specific person authored that snapshot and its position in history. A signed tag attests that a specific person vouches for the state of history at that point, commonly used to mark a release. A project that needs both per-author provenance and a verifiable release record should sign both — one does not substitute for the other.
📚 Further Reading
- A companion piece on Git’s hash chain covers what Git’s hashing actually guarantees on its own — tamper-evidence, not authentication — and why the author/committer fields are unauthenticated without a separate signature.
- A Code Review Rubric for AI-Generated Pull Requests — the same “don’t trust a green status symbol more than it earned” discipline, applied to reviewing agent-authored code.
- Human PR Review of AI Agents: The Judgment Ratchet — why “who actually produced this change” is becoming a live question well beyond human contributors.
- Passkey vs Password Manager: Do You Need Both? — a parallel case of trading a long-lived stored secret for a short-lived, identity-anchored credential.
- MCP Server Supply Chain Security: Hardening Agent Skills — the same mutable-reference-in-a-trust-chain problem this article’s enforcement section runs into, in a different pipeline.
- Secure Agentic Harness: The Lethal Trifecta at Fleet Scale — securing a pipeline where an increasing share of commits may not be typed by a human at all.
- Primary sources: git-scm.com’s Signing Your Work chapter, the
merge-configandpretty-formatsdocumentation, Git’s 2.34.0 release notes, Sigstore’sgitsign, GitHub’s commit signature verification docs, and the 2025 commit-signing adoption study (arXiv:2504.19215).
📚 Recommended Resources
Disclosure: some links below are Amazon affiliate links. If you buy through them, I earn a small commission — at no extra cost to you — which helps keep this site running.
Pro Git
Scott Chacon & Ben Straub · Book · 2nd edition (Apress, 2014)
The primary source for the mechanics this article builds on — the “Signing Your Work” chapter walks through generating a GPG key, signing tags and commits, and reading %G? output directly. The full text is also free, under CC BY-NC-SA 3.0, at git-scm.com/book — read it there first; the print edition is for anyone who wants a durable reference on a shelf.
Version Control with Git
Prem Kumar Ponuthorai & Jon Loeliger · Book · 3rd edition (O’Reilly, Oct 2022)
A thorough working reference once you’re past “how do I sign a commit” and into the operational questions — key management, verifying signatures across a team, and the surrounding plumbing commands this article only has room to summarize.
Software Engineering at Google
Titus Winters, Tom Manshreck & Hyrum Wright · Book (O’Reilly, 2020)
Covers the process side this article keeps circling back to: why a real provenance story is a mix of tooling and organizational policy — code review, ownership, and what a team actually enforces versus what it merely makes available. Also free, as HTML under CC BY-NC-ND 4.0, at abseil.io/resources/swe-book — check the free edition before buying.
If you want to see exactly what a signature commits to by implementing the object model yourself, James Coglan’s Building Git walks through building Git’s internals — hashing, objects, and history — from scratch. It’s sold as an ebook directly from the author’s own store (shop.jcoglan.com/building-git) — no Amazon listing exists for it, so there’s no affiliate link here, just the pointer.