Automate maintenance of old outdated branches

240 votes

I work with GitHub a lot, through PR with my team.

Whenever a PR is merged, the remote branch is automatically deleted from GitHub, but I am left with the local version of it. From time to time a go around and delete those old branches but it's a bit tedious.

I would love it if there were some sort of "maintenance" tooling to automatically clean up my working copy, by deleting those old branches. This is currently made worse by the fact that when deleting a branch, the window sometimes scrolls back to the top.

This could also be a nice addition for all stashes that I created but forgot to clean up, or the automatic ones created when rebasing.

Under consideration Quality of Life Suggested by: Thibaud D. Upvoted: 19 Apr Comments: 24

Comments: 24