2
I ran a revert commit in git extensions, and I did not realize it was going to remove all my code from exclipse as a result. How do I unrevert in git extensions?
2
I ran a revert commit in git extensions, and I did not realize it was going to remove all my code from exclipse as a result. How do I unrevert in git extensions?
1
According to the Git Extensions Manual, a revert commit is just a new commit that undoes whatever commit you are reverting. So, you have a couple of options..
The non-destructive option would be to just revert the new commit that was created by your first revert.
Now, for the destructive option you can reset your branch to the previous commit using:
git reset --hard HEAD~1
This does a hard reset so any work in your tree may be lost. If you have pushed your original revert commit already the first option is definitely going to be the best option for you since the second is changing history.