Skip to content

Instantly share code, notes, and snippets.

@franciscomxs
Created September 11, 2017 14:11
Show Gist options
  • Save franciscomxs/d6a2a5f6ddb9e2ebd3a9ed86ac93680f to your computer and use it in GitHub Desktop.
Save franciscomxs/d6a2a5f6ddb9e2ebd3a9ed86ac93680f to your computer and use it in GitHub Desktop.
Modify specific commit
$ 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