git: prune stale branches

· Thiago Perrotta · Nov. 27, 2025, 9:34 p.m.
Summary
This post explains how to clean up local git branches that have been merged upstream, making it easier for developers to manage their git environment. It provides specific commands to create aliases for pruning branches.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →