To undo changes made to your working directory, use the command git _______.

  • reset
  • revert
  • restore
  • rollback
The correct option is "b) revert." The git revert command is used to undo changes made in the working directory by creating a new commit that undoes the specified commit. This allows you to maintain a linear project history.
Add your answer
Loading...

Leave a comment

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