Re: [PATCH v4 4/6] fetch: add --prune-merged
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- May 5, 2026, 20:48 UTC
- Message-ID
- <1e38fb35-f75d-4067-856e-b5c15f507007@kdbg.org>
- In-Reply-To
- <98cfdb87d26cec5f91ea4d8ce949512d60958e56.1778009038.git.gitgitgadget@gmail.com>
Am 05.05.26 um 21:23 schrieb Harald Nordgren via GitGitGadget:
> After a successful fetch from a configured remote, run > 'git branch --prune-merged <remote>' to delete local branches > whose push destination ref has just been pruned.
I have some sympathy for the desire to clean up unnecessary local branches, but I don't like the concept that `git fetch` modifies local branches, not even as an opt-in. Deleting local branches should be `git branch`'s task exclusively (at the porcelain level).
-- Hannes