gg histedit
gg histedit [options] [UPSTREAM]
interactively edit revision history
This command lets you interactively edit a linear series of commits.
When starting histedit
, it will open your editor to plan the series
of changes you want to make. You can reorder commits, or use the
actions listed in the plan comments.
Unlike git rebase -i
, continuing a histedit
will automatically
amend the current commit if any changes are made. In most cases,
you do not need to run commit --amend
yourself.
Options
- -abort
- abort an edit already in progress
- -continue
- continue an edit already in progress
- -edit-plan
- edit remaining actions list
- -exec command
- execute the shell command after each line creating a commit (can be specified multiple times)