Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as a developer

View project on GitHub

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