Execute a shell command on every commit in rebase
Git rebase allows you to execute a command on any commit in a rebase:
The result will look something like this:
It is very useful for resetting authors on multiple commits in case you forgot to set the current pair.
P.S. if you are curious about what git reset-authors
does check out our .gitconfig
in Hashrocket's dotfiles:
https://github.com/hashrocket/dotmatrix/blob/master/.gitconfig#L18
Tweet