Last active
March 8, 2019 22:42
-
-
Save luiarthur/e76cfbd22de6750cb5df071d4694c0d4 to your computer and use it in GitHub Desktop.
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 [revision] . | |
# where [revision] is the commit hash (for example: 12345678901234567890123456789012345678ab). | |
# Don't forget the . at the end, very important. | |
# See: https://stackoverflow.com/questions/2007662/rollback-to-an-old-git-commit-in-a-public-repo | |
# Other useful commands | |
# Show which files were changed | |
git log --raw | |
# It's probably a good idea to checkout previous versions in a new branch. Make | |
# sure everything looks right. Then merge the branch into master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment