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.
Loading...
Related Quiz
- In a complex project workflow, a __________ Git hook can enforce commit message standards.
- A clean Git history is often maintained by using _______ to combine commits before merging.
- In a Bitbucket repository, how can a team automate the process of sending notifications to a chat service after each commit?
- What is the main purpose of forking a repository in Git?
- After a major failure in version control, an enterprise revises its Git strategy. What aspect of Git are they most likely to focus on for improvement?