Git revert-N INDEX
Differences between git revert and git Reset
1. Git revert is the commit before rolling back and forth with a new commit. Git reset is to delete the specified commit directly.
2. In the rollback operation, the effect is similar. However, there are differences between the previous versions of merge in the future. Because git revert uses a reverse commit before commit "neutralization", this change will not occur again when old branch is merged in the future, however, git reset deletes some commit on a certain branch. Therefore, when the old branch and the old branch run merge again, these rollback commit should also be introduced.
3. git reset moves the head backward, while git revert moves forward with the head, but the content of the new commit is exactly the opposite of the content to be revert, which can offset the content to be revert.