Skip to content

Instantly share code, notes, and snippets.

@jbgutierrez
Created May 16, 2011 08:14
Show Gist options
  • Save jbgutierrez/974079 to your computer and use it in GitHub Desktop.
Save jbgutierrez/974079 to your computer and use it in GitHub Desktop.
Git history rewrite (fix a bad commit)
git tag bad HASH
git co bad
git commit --ammend
git rebase --onto HEAD bad master
git tag -d bad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment