git _______' is used to undo changes by creating a new commit with the opposite changes.

  • back
  • reset
  • revert
  • undo
The correct command is 'git revert.' This command creates a new commit that undoes the changes made in a previous commit. 'git reset' is used for more aggressive changes, and 'git undo' and 'git back' are not valid Git commands.
Add your answer
Loading...

Leave a comment

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