Created
September 20, 2017 08:17
-
-
Save arturparkhisenko/faff2d5a83bb885b10d2205c7c3364f2 to your computer and use it in GitHub Desktop.
git hints
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
# https://stackoverflow.com/questions/17667023/git-how-to-reset-origin-master-to-a-commit | |
git checkout master | |
git reset --hard e3f1e37 # put here the latest commit | |
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