Skip to content

Instantly share code, notes, and snippets.

@BBischof
Created May 12, 2016 00:20
Show Gist options
  • Save BBischof/cdbdd70d365b67eaee46c4642e7bedaa to your computer and use it in GitHub Desktop.
Save BBischof/cdbdd70d365b67eaee46c4642e7bedaa to your computer and use it in GitHub Desktop.
deleting a specific git commit
#how to deal with this obnoxious issue.
git log
#look for the <commmit-id> of the offending commit
git rebase --onto <commit-id>^ <commit-id> HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment