Created
October 12, 2018 00:29
-
-
Save almibe/91d4d17659c49095158944409ebd0948 to your computer and use it in GitHub Desktop.
revert to a specific version in git easily + keep history
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 rm -r . | |
git checkout HEAD~3 . | |
git commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment