Skip to content

git branch

List local git branches enriched with their GitLab Merge Request status.

Usage

fns-cli git branch

Flags

FlagDescription
-h, --helpShow help

Output

Each local branch is listed with a color-coded MR state label:

StateColorMeaning
openedGreenAn open MR exists for this branch
mergedBlueThe MR has been merged
closedRedThe MR was closed without merging
noneGrayNo MR found for this branch

Tips

  • The GitLab project namespace is inferred automatically from the git remote URL — no configuration needed per project.
  • Useful for a quick overview of which local branches have open, merged, or no MRs before cleaning up stale branches.