Recover from git reset --hard
Okay, it was a stupid mistake in the morning before coffee, I hard reset my clone to a wrong repo.
So, not just my current branch, but everything is gone, including my other branches of projects working in parallel.
Learnt from experience, don't try any thing more or might be messing things up even worse, searched online.
Thank the author of Git, there is a command, showing all actions(?) I did.
git reflog
Hard reset to the previous hash recovered my not yet pushed branches.
Now, that maybe something I should keep in mind with.
Labels: git