Skip to content

Instantly share code, notes, and snippets.

@GJSmith3rd
Created May 10, 2016 03:53
Show Gist options
  • Save GJSmith3rd/639b35fc0b4702b39943f480bb0819df to your computer and use it in GitHub Desktop.
Save GJSmith3rd/639b35fc0b4702b39943f480bb0819df to your computer and use it in GitHub Desktop.
From http://stackoverflow.com/questions/4114095/revert-git-repo-to-a-previous-commit - Safely revert to previous commit while keeping history and avoid continuous prompts at various commit stages.
git revert --no-commit 0766c053..HEAD
git commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment