How can i revert deleted files on Github

I had a project called twitter-clone on Github. And accidentally i added this repository as the remote origin of the project I am currently working on and made a force push to master branch. And my twitter clone is gone. Is there any way that i can revert it?

Just check out the last commit prior to your force push, then you’ll need to force push that.

1 Like

this solution solved my problem.