Created
September 9, 2012 21:56
-
-
Save gabrielstuff/3687544 to your computer and use it in GitHub Desktop.
Gist for removing files, infos from a commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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