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
How does Git mark the conflicting areas in a file?
Git uses special markers like <<<<<<<, =======, and >>>>>>> to show the conflicting parts from each branch inside the file.
Click to reveal answer
beginner
What is the first step to resolve a merge conflict?
Open the conflicted file, find the conflict markers, and decide how to combine or choose between the changes.
Click to reveal answer
beginner
Which Git command do you use to mark a conflict as resolved after editing?
Use
git add <filename> to mark the conflict as resolved before committing.Click to reveal answer
beginner
What command finalizes the merge after resolving conflicts?
Run
git commit to complete the merge once all conflicts are resolved and staged.Click to reveal answer
What does Git use to show conflicting changes inside a file?
✗ Incorrect
Git inserts markers like <<<<<<<, =======, and >>>>>>> to highlight conflicting sections.
After fixing a merge conflict in a file, what is the next Git command to run?
✗ Incorrect
You must stage the resolved file with git add before committing.
What causes a merge conflict in Git?
✗ Incorrect
Conflicts occur when the same lines in a file are changed differently in two branches.
Which command completes the merge after resolving conflicts?
✗ Incorrect
git commit finalizes the merge after all conflicts are resolved and staged.
If you want to abort a merge and return to the previous state, which command do you use?
✗ Incorrect
git merge --abort cancels the merge and restores the state before merging.
Explain the steps you take to resolve a merge conflict in Git.
Think about what Git shows you and how you fix it step by step.
You got /6 concepts.
What are the common causes of merge conflicts and how can you avoid them?
Consider why conflicts happen and good teamwork habits.
You got /5 concepts.