What Is a Git Commit? A Saved Point in Your Website Code History
What does a developer mean by committing a change? A commit records a set of file changes in the project history.
1:47 · No narration: the video shows each step as text on screen, and every step is written out below, with buttons that jump the video to it.
Prefer YouTube? Watch this video on our YouTube channel (opens in a new tab).
The six points in the video
This is a silent video. The headings, explanations and labels below reproduce the information on screen.
-
Step 1: A commit records file changes
It can include changes across one or several files.
On-screen labels: One or more files; Recorded changes; Project history.
-
Step 2: A message describes the change
A useful message helps others understand what was done.
On-screen labels: Brief description; Useful context; Reason for the update.
-
Step 3: Each commit has an identifier
A hash gives the saved change a specific reference.
On-screen labels: Commit hash; Exact reference; Identifiable change.
-
Step 4: History records authorship
The record helps show who made a change and when.
On-screen labels: Recorded author; Change time; Project timeline.
-
Step 5: A commit is not a release promise
Saving a change does not prove that the live site now uses it.
On-screen labels: Saved project change; Deployment status; Live version check.
-
Step 6: Reference it during support
An exact change reference can help a maintainer investigate.
On-screen labels: Relevant commit; Affected files; Observed website result.
A practical check for your business
Use commit descriptions that explain a meaningful change. When investigating a problem, connect the relevant saved change with the release and the behaviour seen on the actual website.
Sources and further detail
Common questions
What does a developer mean by committing a change?
A commit records a set of file changes in the project history. Use a clear reference when discussing a code change.
Go further
More video tips
All 205 videos →
Git Branches Explained: A Separate Line of Website Development
Keep proposed code changes clear.
What Is a Pull Request? How Website Code Changes Get Reviewed
Pull requests, explained.