Practice Resolving Git Merge Conflicts
See what happens behind every command.
Resolve a disagreement
You changed the sugar to 1 tablespoon. Maya changed that same line to 2 tablespoons. Git cannot decide which instructions you intended. Choose an amount and save the decision.
- 01
Recognize why two edits to the same line can conflict.
- 02
Choose the final recipe content while preserving both histories.
- 03
Select the resolved file and finish the merge.
You will resolve a real-looking conflict in pancakes.txt and see both lines of history join.
This exercise prepares three saved versions: the original recipe, your sugar edit, and Maya’s different sugar edit. These existing saves set up the disagreement; you did not create them in this practice.
Each lesson starts from this setup so you can replay it independently.Follow the buttons or try commands yourself. Finish with two recap questions.
Starting point: an empty folderRecipe analogy & setup
Type a command or choose a quick command. Your simulated history stays here when you switch tabs.
More quick commands
mainClick a commit to inspectGitHub hosts your online copy. Teamwork is a separate path.
