-
-
Save franciscomxs/d6a2a5f6ddb9e2ebd3a9ed86ac93680f to your computer and use it in GitHub Desktop.
Modify specific 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
$ git rebase --interactive 'SHORT_SHA^' | |
# In the default editor, modify `pick` to `edit` in the line whose commit you want to modify. | |
# Make your changes and then commit them with the same message you had before: | |
$ git commit --all --amend --no-edit | |
$ git rebase --continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment