glab repo prune

Category: GitLab

glab repo prune

Delete local branches whose MRs were merged

Removes local git branches that have at least one merged merge request and no open ones, skipping protected, default, and checked-out branches. Only your local repository changes; remote branches are untouched. Add --merged to skip the per-branch lookup and rely on git branch --merged instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.