Reference
mg split
Interactive commit splitting or folding
Name
mg split
— Rewrite Git history by splitting or folding commits.
Synopsis
Description
- Opens an interactive interface to let you choose how to break large commits into smaller ones.
- With
--fold
, merges multiple commits into one.
Options / Flags
--fold
: Instead of splitting, fold consecutive commits into a single commit.
Examples
- Rewrites history; child branches may need to rebase if they depend on the modified commits. - Use caution with previously pushed commits, as force pushes might be required.
Was this page helpful?