Git · Junior · Question 31 of 75
When is git reset risky and git revert preferable?
- ✓Correct answer: When the commits were already pulled by others
- 2When the commit contains only newly added files
- 3When the repository has more than one branch
Explanation
Reset rewrites history; teammates who have the old commits will get confusing divergence. For published history add a reverting commit instead.