Prune stale remote branches #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
origincarries two leftover feature branches:thumbnail-helpers— fully merged intomain, nothing unique on it.fix-readme-and-priority-items— carries one merge commit not reachable frommain.Both predate the current workflow. They clutter the branch list and make it ambiguous which
branches represent live work.
Definition of done
thumbnail-helpersis deleted fromorigin(verified merged first).fix-readme-and-priority-itemsis inspected; if its unique commit contributes nothing thatis not already on
main, it is deleted, otherwise the difference is described in a commenton this issue before anything is deleted.
git branch -ron a fresh clone shows onlyorigin/mainplus any branch belonging to anopen PR.
Notes
Do not delete anything that is the head of an open pull request. Verify with the PR list
first. No code changes; nothing to test beyond confirming
mainis unaffected.