Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 539 Bytes

rollback_a_repository_to_a_specific_commit.md

File metadata and controls

18 lines (12 loc) · 539 Bytes

Rollback a repository to a specific commit

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

References