The git _______ command creates a new commit that undoes all of the changes made in a specified commit.

  • revert
  • reset
  • undo
  • backout
The correct option is revert. The git revert command is used to create a new commit that undoes the changes made in a previous commit, effectively reverting the repository's state to a previous point in time.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *