Git Shit I’m Tired Of Looking Up

How do I go back to an old commit?

git reset –hard HEAD~

This will reset to the last commit. This can be done repeatedly to go back to the position you want.

git push -f origin master

This will push your local to update the changes to your remote repository (ex. GitHub)