Skip to content

Instantly share code, notes, and snippets.

@drrost
Last active November 18, 2019 16:56
Show Gist options
  • Save drrost/d7f7e4c77329ea681aa23f2abc5af1b2 to your computer and use it in GitHub Desktop.
Save drrost/d7f7e4c77329ea681aa23f2abc5af1b2 to your computer and use it in GitHub Desktop.

Delete the last commit locally and remotely

git reset HEAD^ --hard
git push origin -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment