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.
Loading...
Related Quiz
- What is the purpose of the 'HEAD' in a Git repository?
- In the Gitflow workflow, the ________ branch contains the official release history.
- How can advanced rebasing techniques be used to resolve complex merge conflicts in Git?
- In the context of large-scale collaborative projects, what is a key advantage of using the Forking workflow over Gitflow?
- What is a common practice for managing access to a Git repository?