Unable to recover Repl code after linking Github repo to it

I was trying to put my code in Repl to a Github repo using Git commands by following this tutorial (Repl.it/GitHub Integration - Wikiversity). However, after executing the commands, I noticed that it actually erased the existing code in my Repl without moving them to the Github repo.

I spent a lot of time researching for ways to recover the code, but none of the approaches I found worked (the file history doesn’t work since the files are gone, and I’m not able to access the history of the entire Repl somehow — I think this feature was removed).

Any help would be much appreciated!

create files with the same names as the files you had, then the code may recover or be available through the history of each file

1 Like

Any reason you chose to use this tutorial instead of the official replit one here: https://docs.replit.com/category/using-git-on-replit

1 Like