Git Commit / Branch / Merge Playground

Ijah’s photo album at Mr. Harun’s studio: a photo is a commit, a ribbon a branch, the red ribbon HEAD. Tie ribbons, switch, merge by fast-forward or with two…

Why it matters

git is used every day, yet many people fear branch and merge because they never see what moves. Once you see that a branch is only a name on one commit, HEAD only a marker of where you are, and a merge makes a commit with two parents, the commands stop feeling like magic.

The key idea

A commit is a photo, a branch only a ribbon that slides

Common mistakes

Try it in this playground