Git · Middle · Question 61 of 75

What does git reset --merge or git merge --abort protect that reset --hard doesn't?

Explanation

They undo the merge result but keep unrelated uncommitted edits where possible. --hard would throw all uncommitted changes away.

Further reading

Problem with a question

Git · Middle · question 61

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz