# Commit

> What a commit is, what it records, and why committing every content change matters for a website.

Canonical: https://gitcms.dev/glossary/commit/

A commit is a saved snapshot of changes in a Git repository, recorded with an author, a timestamp, and a message describing the change.

## What a commit records

- **What changed**: the exact lines added and removed in each file
- **Who changed it**: the author
- **When**: a timestamp
- **Why**: a message, such as "Update opening hours on contact page"

Commits form a history you can browse, compare, and revert.

## Commits on a website

When a host like Vercel or Netlify sees a new commit on the main branch, it rebuilds and deploys the site. So on a code-first website, a commit to main is effectively "publish".

## Why it matters for content

If content edits are commits, you always know who changed a page and can undo any change. In GitCMS, every save is a real commit in your repository, made with the editor's identity.
