composer deleted subsequent requests from restored ones

I used composer to copy the code that worked. But I can’t go back and I lost about 60% of my code, composer just erased subsequent requests. Help(

It would be best if you check how to use git to store versions of code so that deletions or changes dont cause such issues. going back (up in chat) is not a good solution.