Git · Middle · Question 61 of 75
What does git reset --merge or git merge --abort protect that reset --hard doesn't?
- 1Commits on other branches during the merge
- ✓Correct answer: Local changes that weren't part of the merge
- 3Tags that point to the merged commits
Explanation
They undo the merge result but keep unrelated uncommitted edits where possible. --hard would throw all uncommitted changes away.