Name

mg list — List all branches in a tree-like hierarchy, reflecting parent-child relationships.

Synopsis

mg list [--all]

Description

  • Lists a concise tree of all branches managed by mrge, starting from the trunk branch.
  • Useful for large projects with multiple layers of stacked branches.

Options / Flags

  • --all: Include orphaned or merged branches in the tree.

Examples

mg list
# output:
# main
# └── feature_1
#     └── feature_2

# Show orphaned branches as well
mg list --all
  • If a branch is not recognized by mrge, it won’t appear unless adopted (see mg adopt). - The tree reflects local config; ensure you’ve synced with remote to see up-to-date info.