Branching is the feature that makes Git special. A branch is just a lightweight, movable pointer to a commit. Creating one is instant, so you can try out an idea, build a feature, or fix a bug in isolation without ever putting the working version of your project at risk. When the work is ready, you merge it back. This module teaches you to branch often and merge with confidence.
You'll create, list, and switch branches with git branch, git switch, and git switch -c, and learn what HEAD really points to as you move between them. You'll see the two kinds of merge Git performs: a fast-forward, which simply moves a pointer, and a three-way merge, which uses the common ancestor of both branches to create a new merge commit. Finally, you'll face the thing beginners fear most, the merge conflict. You'll learn to read conflict markers, choose the right result, and finish the merge calmly with git add and git commit.
Watch the lessons in order, then continue on to Undoing Changes.
SuperSimpleDev works step by step through creating branches, merging them, handling merge conflicts, and using the feature branch workflow that teams rely on to work on the same project at the same time.
A clear explanation of the two ways Git merges changes, fast-forward and three-way, including what each one does to your history and when Git chooses one over the other.
A look behind the scenes at merging: what the merge base is, how the three-way merge algorithm combines changes from two branches, and what happens when the same lines were changed on both sides.
A thorough walkthrough of why merge conflicts happen and how to resolve them properly, from reading the conflict markers to finishing (or aborting) the merge safely.