Commit signing adds a digital seal to a saved code change, proving which key holder made it.
This guide is for students, new developers and anyone who has seen a green "Verified" badge on GitHub and wondered what it means. If your business pays people to write code, it helps you ask whether you can trust who changed it.
In short
- The name and email on a saved code change are just text, and anyone can type any name there.
- Signing adds a seal made with a secret key that only the developer holds.
- GitHub shows "Verified" when it can check that seal against a key saved on the developer's account.
- Verified tells you who signed the change. It does not tell you the code is safe or bug free.
What you will learn
- Explain what the Verified, Unverified and blank badges mean.
- Explain why a name on a code change is not proof of who made it.
- Check whether your own changes show as Verified.
- Ask your team whether signed changes are required on important projects.
- Saved change (commit)
- a snapshot of code changes that a developer chooses to save in the project's history.
- Digital seal (signature)
- a mark made with a secret key that others can check with a matching public key.
- Key pair
- two linked keys: a private one the owner keeps secret, and a public one anyone can see.
What is commit signing?
Think of a wax seal on a letter. Anyone can write "from the Queen" at the bottom. Only the person with the right seal can press it into the wax, and others know what that seal looks like.
Many developers use Git, a tool that keeps a history of a project's files. Each commit (a deliberate save of some changes) carries an author name and email address. Git takes these from the developer's own settings, so anyone can set them to anything.[2] GitHub, a popular website for storing shared code, links commits to accounts using that email address.[3]
Commit signing adds a seal. The developer's computer uses their private key (a secret key they keep to themselves) to make a signature. Anyone with the matching public key can check it. If the change is altered later, the check fails.[4]
Where the comparison stops working: a seal can be seen by eye. A signature needs a computer to check it, and the check is only as good as the list of trusted public keys it uses.
Why does it matter?
Code changes are how software gets built. If someone can make a change look as if it came from a trusted developer, reviewers may wave it through. Signing gives reviewers one more fact to check: which key made the change.
If you are learning to code
What could happen: your changes show no badge, and a project you want to help with only accepts signed changes.
Check this: open your recent commits on GitHub and look for the Verified badge.
If you look after an open-source project
What could happen: a change arrives under a respected contributor's name, but they never made it.
Check this: look at the badge as well as the name before you accept a change.
If your business pays for software
What could happen: nobody can say for sure who made a change that caused a problem.
Check this: ask your supplier whether important projects require signed changes.
What does it look like?
Here is a made-up list of recent commits, laid out like a code hosting website shows them.
Example only. All values are made up.
Commits on main, project example-org/garden-shop Fix basket total by dev-amy [Verified] (1) Update home page text by dev-amy [Verified] (2) Add payment step by dev-amy (3) Change delivery prices by dev-ben [Unverified] (4)
- Signed, and the site could check the seal against a public key saved on the account.
- Also Verified. Changes made in GitHub's own web editor are signed by GitHub for you.
- No badge: this change was not signed. The name alone shows only what was typed in the settings.
- Signed, but the site could not check the seal, for example because the key is not on the account.
Why this is risky: change 3 carries a trusted name, but nothing proves who made it. Change 4 needs a closer look before anyone relies on it.[1]
The safer way: every developer signs their changes, and important branches (the main lines of work in a project) accept only signed and verified changes.[5]
How does it work?
Here is what happens between a developer's laptop and the green badge.
- Make a key pair. The developer creates a private key and a matching public key. GitHub accepts three kinds: GPG keys, SSH keys and S/MIME certificates.[1]
- Share the public half. They add the public key to their GitHub account. For S/MIME, the certificate comes from their organisation instead.[1]
- Sign each change. Git uses the private key to sign each commit as it is saved. Teams can set Git to do this by default.[4]
- Upload. The developer uploads their changes. GitHub checks each signature against the keys on the account.
- Show the badge. If the check works, the change shows "Verified". GitHub also keeps a record of that check with the commit, so it stays Verified if the key is later replaced or the person leaves.[1]

There is one more setting worth knowing. Vigilant mode is an option, off by default, that marks your unsigned commits as "Unverified" too. That makes it easier to spot a change that uses your name but was not signed by you.[2] GitHub suggests turning it on only once you sign all your commits.

A worked example
Xena Quist is a computer science student who helps with a small, fictional open-source project for planning bus routes. Its maintainer is Idris Yeboah.
One evening Idris spots a new change to the code that handles passwords. It is under Xena's name and email, but it has no badge. Xena's other recent changes all show "Verified".
Idris thinks of the wax seal. Anyone can write a name, but only Xena holds her seal. He does not accept the change. Instead he messages Xena through the chat they already use, not through the change itself.
Xena replies that she never made it. Someone else had set their Git settings to use her name and email. Nothing about her account had been touched.
Idris closes the change and turns on a branch rule so the main branch only accepts signed and verified commits. Xena turns on vigilant mode, so any future unsigned change under her name shows as "Unverified".
A week later, a new helper called Cyrus Delmar asks why his first change was blocked. Idris sends him a link to GitHub's help pages on adding a signing key. Cyrus uses the SSH key he already has for uploads, and his next change shows Verified.
Idris still reads every change carefully. The badge told him who signed, not whether the code was good.
Myths and mistakes
| What people think | What is true |
|---|---|
| Verified means the code is safe. | It means the site checked the signature against a known key. The code still needs review. |
| The name on a commit shows who made it. | The name and email are settings anyone can change. Only a checked signature ties a change to a key.[2] |
| Unverified means someone is attacking us. | Often it is a setup slip, such as a key missing from the account. Check with the developer before you trust it. |
| Signing keeps my code secret. | Signing proves who made a change. It does not hide anything. Hiding data is the job of encryption. |
| Once I sign, my key can never be misused. | Anyone who copies your private key may be able to sign as you. Protect it like a password and replace it if it leaks. |
What can I do this week?
- Look at your last few commits on GitHub and note which ones show Verified.
- Follow GitHub's help pages to add a signing key to your account.
- Set Git to sign your commits by default, so you do not have to remember.
- If you run a project, turn on the rule that the main branch only accepts signed commits.
- Agree with your team what to do when a change shows Unverified.
Checklist
- Each developer has a signing key added to their account.
- Git is set to sign commits by default on every developer's computer.
- Important branches accept only signed and verified commits.
- Reviewers look at the badge as well as the name.
- Private signing keys are kept safe, with a passphrase where the tool allows one.
- A leaked or lost key is removed from the account and replaced.
- Everyone knows that Verified is not the same as reviewed.
Common questions
Why do some of my commits show Verified when I never set up signing?
Because GitHub signed them for you. Changes you make in GitHub's own web editor are signed with GitHub's key, so they show Verified.[1] Changes you make on your own computer need your own signing key before they get the badge.
What does Unverified mean on GitHub?
It means the change was signed, but GitHub could not check the signature. Common causes are a key that is not on the account, or an email that does not match. With vigilant mode on, unsigned changes also show Unverified.[1]
Which kind of key should a beginner use?
Many beginners start with SSH, because GitHub describes it as the simplest option and you may already have an SSH key for uploads.[1] GPG keys can be set to expire or be cancelled, which SSH keys cannot. S/MIME is mostly used in larger organisations.
Is commit signing only a GitHub thing?
No. Signing is built into Git itself, so it works wherever you use Git.[4] Other code hosting sites can check signatures and show their own badges. This guide uses GitHub's wording because it is the badge most people see first.
What should I do if my signing key leaks?
Remove the public key from your account and make a new key pair straight away. Tell the people who run the projects you work on. Changes that were already Verified keep their badge, so ask them to review anything recent you did not make.[1]
Where next?
Ready for the detail? Read the practitioner guide: Git Commit and Tag Signing Guide. It goes further into choosing between GPG, SSH, S/MIME and keyless signing, enforcing signed commits with branch rules, and signing changes made by automated tools.
Also useful:
- Digital Signatures for Beginners
- Code Signing for Beginners
- SSH Keys for Beginners
- Public Key Cryptography for Beginners
- GitHub Security for Beginners
Related NHI Mgmt Group resources: Keyless vs Key-Based Code Signing · GitHub Organisation Security Checklist · Software Supply Chain Security for Beginners
Key terms
- Commit
- A snapshot of changes that a developer chooses to save in Git, kept in the project's history.
- Commit signing
- Adding a digital signature to a commit so others can check which key made it.
- Digital signature
- A mark made with a private key that proves who signed something and that it has not changed.
- Private key
- The secret half of a key pair, kept only by its owner and used to sign.
- Public key
- The shareable half of a key pair, used by others to check a signature.
- GPG
- A free tool for making keys and signatures, often used to sign commits.
- Branch protection
- Rules on a code hosting site that control which changes a branch will accept.
Sources and further reading
- About commit signature verification. GitHub Docs, GitHub. https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification, accessed 28 Nov 2026.
- Displaying verification statuses for all of your commits. GitHub Docs, GitHub. https://docs.github.com/en/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits, accessed 28 Nov 2026.
- Setting your commit email address. GitHub Docs, GitHub. https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address, accessed 28 Nov 2026.
- Pro Git, section 7.4 Git Tools: Signing Your Work. Scott Chacon and Ben Straub, Git project. https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work, accessed 28 Nov 2026.
- About protected branches: Require signed commits. GitHub Docs, GitHub. https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches, accessed 28 Nov 2026.