Three commits on main.3 commits · on main
Chapter 2 of 7
A chain of snapshots
Mira raises the bracket price. To keep it, Git seals the whole page in a commit, chained to the commits before it.
This chapter: What is a commit, and why can’t its past change quietly?
About this chapter
You will learn
- A commit is a snapshot, its parent, who, when and why
- Each commit holds its parent’s name
- Why changing old history renames everything after it
Words you’ll meet
- Commit
- A saved snapshot of the project, with its parent, author, time and message, named by its hash.
- Snapshot
- The whole project as it was at one moment, not a list of changes.
- Parent
- The commit a commit was made on top of; its name is written inside.
Step 1 of 5
A seals a of the whole page with its ’s name, who, when and why.
Commit Mira’s bracket price.
− Bracket: 2.20 + Bracket: 2.40