To revert to a particular commit, the command git revert ______ is used.
- commit
- revert
- reset
- restore
The correct option is "revert." When you want to revert to a particular commit in Git, you use the git revert command followed by the commit hash. This creates a new commit that undoes the changes introduced by the specified commit.
Loading...
Related Quiz
- A pull request is a request to merge a branch called _______ into another branch in a Git repository.
- How does the Gitflow model handle hotfixes?
- The team needs to integrate a project within another project while maintaining separate version control histories. Which Git feature is the most appropriate?
- What is the significance of signing tags in Git?
- What is the primary role of Git in build automation?