In git let say I commit A and B
A---[B]
But then I revert with
git revert HEAD
So I am there now:
As you create a new commit which reverts another commit you can treat it like a normal commit.
So basically you have many choices, such as
git rebase -i(remove the revert commit)git reset --hard(reset to the commit before the revert, you'll lose all local changes)git reset --soft(same as above but keeps local changes)- technically you can use
git revertto revert your revert