Commit

A commit is a saved snapshot of a project in git, together with a message describing what changed. Each commit gets a unique code and stays in the history, so you can always see who changed what and go back to an earlier version. In Claude Code, Claude can make commits for you when you ask it to.

A save of the project in git, with a message that says what changed. Like a save in a game, which you can go back to at any time.

You’ll also find it as: commits, committed, uncommitted

How it shows up in Claude Code

You don't have to type git commit yourself. You ask Claude to “commit my changes with a descriptive message”, and it looks at what changed, writes a message that describes it and makes the save. In our course the recommended rhythm is simple: ask for a change, check that it works, then commit. That way every good step stays saved.

Commits are different from Claude Code's own rewind points (/rewind). Those only last for the session and don't catch everything changed through terminal commands. The documentation says that for permanent history you keep using git, with commits.

Example

After Claude has finished a page and you've checked it in the browser, you type:

commit the current changes with a short message saying what was added

The result might be a commit with the message feat: add contact page. The “feat: …” form comes from the Conventional Commits convention, which you can ask for in CLAUDE.md.

Common mistakes

  • One huge commit at the end, with dozens of changes mixed together. If something breaks, the culprit is hard to find.
  • Meaningless messages like “update” or “changes”. A month later you have no idea what they contain.
  • Committing passwords or keys. The Claude Code documentation explicitly warns never to commit API keys directly to a repository.
  • Committing before checking that the project works, which saves a broken version.

Related terms and where you learn it

Commits live in git, inside a repository, on a branch. For tidy messages there's Conventional Commits, and for quick undo within a session, checkpoints.

You make them with Claude in the lesson “8. How do you use Claude with git?”, in module 04 · The working method, step by step.

Source: Claude Code documentation: Quickstart

How it appears in the course

You work in four steps: first you look around (Explore), then you make a plan (Plan), then you write the code (Code), then you save (Commit).

Introduction · Module 04, The working method, step by step

The safest way of working with Claude is the Explore → Plan → Code → Commit cycle (look around → make a plan → write the code → save).

What are the four basic steps? · Module 04, The working method, step by step

When something is working well, make a commit: commits remain your safety net.

How do you go back in time if something went wrong? · Module 04, The working method, step by step

Learn Claude Code from zero, in plain English

12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.