Skip to content

Instantly share code, notes, and snippets.

@peterszatmary
Last active October 6, 2020 13:38
Show Gist options
  • Save peterszatmary/f84bfc6b6dfffcedd7ab92815823c6e0 to your computer and use it in GitHub Desktop.
Save peterszatmary/f84bfc6b6dfffcedd7ab92815823c6e0 to your computer and use it in GitHub Desktop.
deleting-commits-in-remote-origin-git
# Deleting commits in origin remote
git checkout master
git reset --hard e3f1e37
git push --force origin master
# Then to prove it (it won't print any diff)
git diff master..origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment