To make a commit appear as if it never happened in the repository, use the git ________ command.

  • reset
  • revert
  • erase
  • amend
The correct option is (a) reset. The git reset command is used to undo changes in the repository, including making a commit appear as if it never happened. It's important to note that using reset rewrites history, so caution should be exercised.
Add your answer
Loading...

Leave a comment

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