Reference
mg adopt
Bring an existing branch under mrge’s management
Name
mg adopt
— Add a previously untracked Git branch to mrge’s stack.
Synopsis
Description
- If
<branch_name>
was created outside ofmg branch
, adopting it integrates it into your stacked workflow. - This will open an interactive view of all of your branches that are not tracked in mg, and you can use ‘space’ to select branches to adopt, and enter to apply.
- After adoption, it appears in
mg list
.
Examples
- If the parent is unclear, consider
mg reparent
. - If the branch was orphaned before, adopting it again is effectively reintroducing it.
Was this page helpful?