Skip to main content
PProfileMatch
← Path

Git and GitHub · Git Branches and Merging: Fast-Forward, Merge Commits and Conflicts

0 XP
  1. 1 current stop: learning
  2. 2 upcoming
  3. 3 upcoming
  4. 4 upcoming
  5. 5 upcoming

Finish after stop 5

Stop 1 of 5 · Fork in the cycle path

Trick to keep in mind+3 XP

A branch is a sticky note on one commit, not a copy of the project.

A branch is only a name that points to a single commit. Committing moves the note forward to the new commit. Nothing is duplicated when you create one, which is why branching is so cheap. The note only marks where a line of work currently ends; the commits themselves belong to no branch exclusively.

Read it once, then a question tests whether the trick stuck.