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.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.