Skip to content

Instantly share code, notes, and snippets.

@DoCode
Created October 31, 2015 23:08
Show Gist options
  • Save DoCode/ccceb13338f72ac01cb4 to your computer and use it in GitHub Desktop.
Save DoCode/ccceb13338f72ac01cb4 to your computer and use it in GitHub Desktop.
Correct commit history

To correct the commit history:

git-checkout 0f0d8a27622e7bf7f008983c4b8ee23bfb9843ab
> make your changes here
  editor path/to/file
git-add path/to/file
git-commit --amend -v
git-rebase --onto HEAD 0f0d8a27622e7bf7f008983c4b8ee23bfb9843ab master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment