Menu
Engineering

Coding & Git

SHA

Also called commit id, commit hash, SHA-1.

In plain English

A SHA is the identifier Git gives one commit, so people can name that exact recorded snapshot.

Example

Two people check out the same SHA and still see different results if one has unsaved edits or a different setup on their machine.

Why it matters

Git builds the id from the commit. If the recorded commit changes, the id changes. People often show a short prefix of the full id. The short form is a nickname for the same commit, not a second snapshot.

Matching commit ids do not prove two working folders are identical. Uncommitted changes, untracked files, and environment differences can remain.

Common confusion

A matching SHA means the recorded commit matches. It does not mean every file in both folders is identical right now.

Sources

Updated September 30, 2026.

Cookie preferences