(referring to this:) Reset all changes after last commit in git
So, I don't have the 50 reputation needed to comment on that topic, so i guess, i have to ask here. In IntelliJ I did follow the first comment saying to git reset HEAD --hard
and then git clean -fd
. And then I lost all my files.
Nothing is visible anymore in IntelliJ. I can still see the git log, but yet, even after checking out to master and trying to get back to the last commit, I still lost all my files since git clean -fd
. If i'm checked in on the branch i want to be, i'm in detached head state.
What can i do? Greets