Git Pro Tips
Enable Fetch Prune
🗓️ Published: 4/15/2026 Originally on X: 5/19/2022

When a remote branch is merged and deleted, it usually still lingers in your local remote-tracking refs.
You can automate cleanup with:
git config fetch.prune true
After that, every git fetch or git pull also prunes deleted remote branches.