Skip to content

Instantly share code, notes, and snippets.

@Beyarz
Last active January 21, 2020 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beyarz/64f84e92e0b103dd8300afce2e087e62 to your computer and use it in GitHub Desktop.
Save Beyarz/64f84e92e0b103dd8300afce2e087e62 to your computer and use it in GitHub Desktop.
Go back to wanted version
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