Rebase Commits With An Arbitrary Command
Interactive rebasing is a powerful way to manage and tend to the history of a git repository. Rewording and squashing commits are fairly common actions. But what if you need to run some arbitrary command against a series of recent commits?
This is where the --exec
flag comes in to play.
This generates an interactive rebase file that you can review and save when ready.
As you can see, the specified command is prepared for execution for each commit involved in the rebase.
h/t Patricia Arbona
PreviousQuicker Commit Fixes With The Fixup FlagNextReference A Commit Via Commit Message Pattern Matching
Last updated