Last active
October 6, 2020 13:38
-
-
Save peterszatmary/f84bfc6b6dfffcedd7ab92815823c6e0 to your computer and use it in GitHub Desktop.
deleting-commits-in-remote-origin-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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