Recall & Review
beginner
What is a merge conflict in Git?
A merge conflict happens when Git cannot automatically combine changes from two branches because the same part of a file was changed differently in each branch.
Click to reveal answer
beginner
Why do merge conflicts happen?
They happen because two or more people changed the same lines in a file or when changes overlap and Git can't decide which change to keep.
Click to reveal answer
intermediate
How can you reduce the chance of merge conflicts?
By communicating with your team, pulling changes often, and working on different parts of the code to avoid editing the same lines at the same time.
Click to reveal answer
beginner
What does Git show when a merge conflict occurs?
Git marks the conflicting parts in the file with special symbols like <<<<<<<, =======, and >>>>>>> so you can see both versions and decide how to fix it.
Click to reveal answer
intermediate
Can merge conflicts happen with binary files?
Yes, but Git cannot show differences for binary files, so conflicts must be resolved by choosing one version or using special tools.
Click to reveal answer
What causes a merge conflict in Git?
✗ Incorrect
Merge conflicts happen when the same lines in a file are changed differently in two branches.
Which symbol does Git use to mark conflicts in files?
✗ Incorrect
Git uses <<<<<<<, =======, and >>>>>>> to show conflicting sections in files.
How can you avoid merge conflicts?
✗ Incorrect
Working on different code parts and frequently updating your branch reduces conflicts.
What should you do when a merge conflict occurs?
✗ Incorrect
You must manually resolve conflicts by editing the file and choosing which changes to keep.
Can Git automatically resolve all merge conflicts?
✗ Incorrect
Git can auto-merge many changes but some conflicts require manual resolution.
Explain why merge conflicts happen in Git and how you can recognize them.
Think about what happens when two people edit the same sentence differently.
You got /3 concepts.
Describe strategies to reduce merge conflicts when working in a team.
How can you avoid stepping on each other's toes in coding?
You got /3 concepts.