From 2e5b8ada7a8d0e51baa96b65020daff73dd32c97 Mon Sep 17 00:00:00 2001 From: Sebastien Taggart Date: Wed, 8 Apr 2026 11:11:46 -0400 Subject: [PATCH] Clarify branch cleanup one-liner applies to custom branch names --- docs/branching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/branching.md b/docs/branching.md index 003d378..bc06611 100644 --- a/docs/branching.md +++ b/docs/branching.md @@ -94,7 +94,7 @@ Branch cleanup is optional housekeeping. Some teams keep every branch forever fo **Easiest baseline:** enable GitHub's *Settings → General → "Automatically delete head branches"*. Every merged PR then deletes its remote branch automatically. This handles the remote side with zero ongoing effort. -**Manual cleanup:** the following one-liners are safe to re-run any time. Replace `dev` with your own `BRANCH_DEV` if different. +**Manual cleanup:** the following one-liners are safe to re-run any time. They assume the default branch names `main`, `dev`, and `test` — if yours differ, substitute your own names everywhere they appear below (both in the `git branch --merged` argument and in the `grep` exclusion list). Prune local refs to branches that no longer exist on the remote: