Learn Git Branching
An interactive tutorial that draws the commit graph as you run commands, so you can watch what rebase, merge and cherry pick actually do. The fastest way to build a mental model of Git.
Platform
Other
Peter Cottle
3 to 4 hours
Beginner
Free
What it is
A browser based Git tutorial where every command you type animates the commit graph, with a sequence of levels from basic branching up through rebasing, interactive rebase, cherry picking and remote tracking.
Why the visualisation is the whole point
Git's difficulty is entirely in the mental model. Once you can see that a branch is a pointer and a rebase replays commits onto a new base, the commands become obvious. Reading that sentence does not achieve it; watching it happen to a graph you are manipulating does, in about three hours.
Where to focus
The remote levels. Most Git confusion in practice is about the relationship between your local branch, your remote tracking branch and the actual remote, and this is the clearest explanation of that relationship available anywhere.
Best for: anyone who uses three Git commands and fears the rest.
Ready to start?
Opens on Peter Cottle in a new tab.
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Every session is free; a few slots open each week.
Follow along
New writing, resources and project ideas land here first.