I'm trying to wrap my head around git revert
.
I'm coming from a Clearcase background where to undo a bad commit, you would either:
- check in the old versions of the files on top of the bad committed files (only file level commits on Clearcase)
- Delete the element that was the commit
- In the version tree, merge the previous version into the current version to create a new version that is identical to the one prior to the latest commit.
Now in my mind, a git revert is an automatic equivalent to the manual work in (3).
My question is: Can we say that a git revert merges the old previous commits on top of the reverted commit?