Branches, merging, and conflicts
Experiment on a branch and resolve a real text conflict.
- Difficulty
- beginner
- Time
- 50 minutes
- Last verified
- 9/21/2026
What you will build
Experiment on a branch and resolve a real text conflict.
Understand the idea first
Experiment on a branch and resolve a real text conflict.
Build it step by step
git switch -c feat/progress-filter
# edit and commit
git switch main
git merge feat/progress-filter- Open the previous project and record its result.
- Type the example and complete: Modify the same line on two branches, resolve the conflict, and run the page.
- Change one input, predict, then verify.
- Create and repair: Never commit conflict markers; edit the intended final content.
Read the important lines
- Experiment on a branch and resolve a real text conflict.
- Read input, processing, and output separately.
- Verify another input and an edge case.
Common mistakes and what to check
| Symptom | What to check |
|---|---|
| Unexpected result | Never commit conflict markers; edit the intended final content. |
| Nothing changes | Save, verify paths, and read the first relevant Console error. |
Practice without copying
Modify the same line on two branches, resolve the conflict, and run the page.
Check the answer after you try
Rebuild and explain the decisions. Check: Never commit conflict markers; edit the intended final content.
Completion check
- I produced the required visible result
- I can explain the input, processing, and output
- I tested normal, edge, and failure cases