Beginner Git & Version Control
Q30 / 100

What does "git revert <commit>" do?

Correct! Well done.

Incorrect.

The correct answer is B) It creates a new commit that undoes the changes introduced by the specified commit, while preserving history

B

Correct Answer

It creates a new commit that undoes the changes introduced by the specified commit, while preserving history

Explanation

"git revert" is a safe way to undo a commit's changes — instead of rewriting history, it adds a new commit that applies the inverse of the original changes.

Progress
30/100