Reputation: 2773
Is it possible to revert my master branch to its initial state if I did a force push on the server with a code that was not up to date? I tried reflog command but it is not working as it keeps track to the local commits only.
Upvotes: 2
Views: 4768
Reputation: 1000
No, if the commit never was on your local repository you cannot resolve this just by yourself.
Ask whoever had pushed what you've overwritten to push force it again (and never never never again push force on branches that other people are using!)
Upvotes: 5