top | item 39880472

(no title)

izoow | 1 year ago

I recently found out that git rebase has a --exec option that allows you to execute a shell command for each commit. If the command fails, the rebase pauses and allows you to make changes to make the command pass. I use this to make sure that there is no commit that leaves my project in an unbuildable state.

discuss

order

eru|1 year ago

You can also use `--interactive` to do a lot of complicated stuff.

penguin_booze|1 year ago

FWIW, you can use `git rebase --edit-todo` in the middle of an interactive rebase, just in case you changed your mind about what comes next.