GitHub installation issues deleted entire frontend

Hello,

Novice coder using new Sonnet in Cursor to build a React Native app. I tried setting up gitHub a month or two ago, but it was setup improperly and only installed the frontend. I wanted to get it properly installed today and used Claude in the chat window to direct me. After setting up git in the parent directory produced a conflict with the older attempt, Claude had me remove a number of things via Bash commands. When I attempted to paste terminal responses and Cursor got stuck on them, I tried to quit and restart Cursor. When I restarted, everything in my frontend directory was gone, all files in the frontend folder were gone, none of them were in the recycling bin, and Cursor, unable to find the root directory, can’t even reopen the chat history to backtrack on how this happened. I searched my hard drive for files that should be there, but they aren’t there.

I did back everything up 3 days ago, so the easiest path is probably to copy and paste my frontend back where it should be, but I’m terrified this could happen again.Any ideas?