Last active
January 21, 2020 00:19
-
-
Save Beyarz/64f84e92e0b103dd8300afce2e087e62 to your computer and use it in GitHub Desktop.
Go back to wanted version
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 revert commit_hash | |
git switch -c wanted_version | |
git merge --strategy=ours master | |
git checkout master | |
git merge wanted_version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment