I haven't pushed to a remote repo yet. I am just so used to being able to pull from one that I didn't even think that there may not be a way to go back.
Asked
Active
Viewed 86 times
-2
-
Check `git reflog` and then run another `git reset --hard` to the revision before you reverted. – eftshift0 Dec 02 '19 at 20:58
-
https://stackoverflow.com/search?q=%5Bgit%5D+undo+reset+%22--hard%22 – phd Dec 02 '19 at 21:07
-
Commits — yes, non-pushed stuff — no. – 0andriy Dec 02 '19 at 21:08
1 Answers
0
Found the solution! Use "git reflog" and you will get a log of all your previous heads. You can check one out from there. Time to push this to a remote!

Afropenguinn
- 35
- 5