How does "git reset" differ from "git revert"?
- git reset discards commits, and changes are lost
- git reset undoes a commit, preserving changes
- git revert discards commits, and changes are lost
- git revert undoes a commit, preserving changes
git reset discards commits and changes are lost, whereas git revert undoes a commit while preserving changes by creating a new commit that undoes the previous changes. Reset is more powerful and should be used with caution.
Loading...
Related Quiz
- The process of verifying the identity of a user or system is known as _______.
- Which caching strategy is suitable for reducing database load and improving response times for frequently accessed data?
- MongoDB stores data in _______ format.
-
What does the
tag define in HTML?
- In a project, you need to embed a YouTube video. Which HTML element would you use for this purpose?