Need some help!
I do know its possible to get these changes back using reflog etc, but I don't know how! I know it's possible to get a diff. I really need those changes.
Any ideas??
Okay, I fixed it. It is possible to recover files that have been added to the index. It is possible to recover the files only if they have either been added or stashed.
Here are the steps:
Step 1:
git fsck −−lost-found
This will give you a list of dangling blob IDs - the stuff you added and did not commit (before doing the force checkout)
Step 2:
git show <ID>
This is the ID associated with that dangling blob. It will spit the contents of the file to the console.
That's it!
This thread helped me: Recover from git reset --hard?