You screw up and want to go back to a known state.
Using --hard
this rollback your files locally
# Reset to either a tag, branch or commit
$ git reset --hard <tag/branch/commit id>
# Point to branch and enforce your reset, resolve your reponame using git remote
$ git push <reponame> -f