I wanted to rollback to the last commit after making a massive error, but I managed to rollback a little too fair. The commit I wanted to reassert doesn’t appear when I enter ‘git log’ in bash (I suppose because it’s no longer in the history). Is there any way I can recover the last commit by date?
I’m also using eGit in eclipse for the same project if that makes things easier. Thanks.
If you are ok with command line, go to you repo, do a
git reflogand get the commit which you want to “rollback” to and do agit reset --hard <commit>You would also be able to do
git reset --hard HEAD@{1}and then come back to egit and rollback to the desired commit.