Created
April 8, 2015 12:07
-
-
Save alihalabyah/b981ae29b0c948ff26d1 to your computer and use it in GitHub Desktop.
How to reset git remote changes
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
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