Hello everyone.
I made a lot of changes in unity. I closed Unity and VS. Then I switched to source tree. I pressed the stage them all. Then I decided to discard a few things. When I discarded the unnecessary things, it also discarded the things I did not choose. And now it has shattered the project. I did it from morning to night and never pushed. For example, my scene disappeared while some codes were standing still, and in some codes, I put a lot of effort into it. Any chance I can fix this?
Community moderators have prevented the ability to post new answers.
Hi @Emre Can
I would run git fsck --lost-found in the repo folder. You staged the files first, so Git recorded them as objects, and they remain as dangling blobs.
Recovered files land in .git/lost-found/other with hash names and no extension. Open them in a text editor to find your scripts.
Also worth a quick git stash list, in case Sourcetree stashed rather than discarded.
Cheer, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.