Git · Middle · Question 68 of 75

What does git revert HEAD~3..HEAD do?

Explanation

Reverts are applied newest first. Add --no-commit to combine them into a single revert commit.

Further reading

Problem with a question

Git · Middle · question 68

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