Skip to content

Instantly share code, notes, and snippets.

@gabrielstuff
Created September 9, 2012 21:56
Show Gist options
  • Select an option

  • Save gabrielstuff/3687544 to your computer and use it in GitHub Desktop.

Select an option

Save gabrielstuff/3687544 to your computer and use it in GitHub Desktop.
Gist for removing files, infos from a commit
# Change commit history in git
```
git-checkout 0f0d8a27622e7bf7f008983c4b8ee23bfb9843ab
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