Building Apps with AILesson 38 of 87

Module 5 · Save points, and shipping to a stranger

What a commit actually is

In this lesson

  • 8 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 2 of 11 in this chapter

This chapter’s goalKeep a project in git well enough to undo any hour (stage part of a change, restore one file, revert a pushed commit, recover from a bad reset, branch for an agent’s work and merge it back) and put the app on a free host with a real domain, environment variables scoped per environment, and a version stamp that says which commit is live.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Three places, not one

When you edit a file, git is looking at three versions of your project at once.

The working tree is the folder you can see. The staging area (git also calls it the index) is a draft of the next save point. The repository is the chain of commits already made.

git add copies a change from the working tree into the draft. git commit turns the draft into a permanent commit. The first git lesson had you run git add -A and skip the middle step, which is fine until the day the folder holds two unrelated changes and you want to save one without the other. That day arrives quickly when an agent is doing the editing, because agents rarely make one change at a time.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Building with AI exam.

Stuck on something?Ask Beatriz, your AI tutor

How to cite: Addaly (2026) ‘What a commit actually is’, in Building Apps with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-apps-with-ai/what-a-commit-actually-is (Accessed: 29 November 2026).