Some commands that are used occasionally and end up needing a stack overflow search.

Hard Reset

Get rid of any commits that are not pushed and reset to origin.

git checkout master
git reset --hard origin/master

Soft Reset

Get rid of commits not pushed but keep the changes.

git reset HEAD~1 --soft

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store