Git revert to previous version does not return all files that were commited

261 Views Asked by At

So I recently had an issue were I messed up pretty bad and bricked my application so I used git to revert back to the previous version once doing so the .sln file was corrupted and now I have absoluty no way of getting my code back except the .exe file I have tried using reflector but its not giving me back the entire source code including all the forms,designers, and .sln file

If anyone can also help me understand why git completly corrupted my project files that would also be helpful

EDIT: Here is an image of the project after reverting you will notice in the bottom console theres a bunch of "File not found" errors in the console and in the solution explorer you can see a bunch of warning images next to the files that went found...which is basically my whole project

Screenshot

For some reason git never saved my project files and I stored my project on github and made changes directly within the projects git folder so I could ave all the files in one place and git was supposed to make it easy to revert changes if something were to brick the application...

I really need something to get my work back I spent weeks building this It would be an absolute nightmare to rebuild this from scratch

EDIT 2: As you can see in this image I added 58 files to the project and EditHeader was in fact in the commit 1.png

Now as you can see in this picture when reverting the project its only returning 28 files and they all have errors 2.png

0

There are 0 best solutions below