Explain the difference between reverting and resetting.
Answer / Sanjeev Mittal
Reverting in Git undoes specific changes by creating a new commit that cancels out the changes made by another commit. It leaves the commit history intact, which is useful for preserving information about what happened.nResetting, on the other hand, removes commits from the repository's history. This can be dangerous because it deletes data permanently. There are different ways to reset (soft, hard, mixed), but all of them affect the commit history.
| Is This Answer Correct ? | 0 Yes | 0 No |
Mention some of the best graphical GIT client for LINUX?
What is a repository in GIT?
What is GIT stash?
How to squash or fixup commits?
What is the difference between git vs svn
What is GIT stash drop?
What is git bisect and what is its purpose?
What is a commit message?
How to create tag?
What are git stash and git stash drop?
What work is restored when the deleted branch is recovered?
Why GIT better than Subversion?