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.
this solution solved my problem.