Git · Middle · Question 68 of 75
What does git revert HEAD~3..HEAD do?
- 1Moves the branch back by three commits
- 2Reverts only the commit that is three steps back
- ✓Correct answer: Reverts the last three commits, one revert each
Explanation
Reverts are applied newest first. Add --no-commit to combine them into a single revert commit.