Skip to content

Document how to clean up merged feature branches#61

Merged
sebastientaggart merged 1 commit into
devfrom
feature/document-branch-cleanup
Apr 8, 2026
Merged

Document how to clean up merged feature branches#61
sebastientaggart merged 1 commit into
devfrom
feature/document-branch-cleanup

Conversation

@sebastientaggart

Copy link
Copy Markdown
Member

Adds a short "Cleaning up merged branches" section to the end of docs/branching.md.

Frames branch cleanup as optional housekeeping (Code Cannon has no opinion), recommends GitHub's auto-delete-on-merge setting as the zero-effort baseline, and provides copy-pasteable one-liners for manual local and remote cleanup using --merged as the safety filter. Includes a warning against age/staleness-based pruning.

Docs-only change. No skill or config changes.

Issue #60

@sebastientaggart

Copy link
Copy Markdown
Member Author

Review Summary

Verdict: APPROVE

Findings

  • [NOTE] The local-branch cleanup one-liner uses grep -vE '^\*|^\s*(main|dev|test)$', which only excludes those names when the integration branch is literally dev; users who set BRANCH_DEV to something else (e.g. develop) will need to adjust both the git branch --merged argument and the grep exclusion list, which the surrounding prose doesn't quite spell out.

@sebastientaggart
sebastientaggart merged commit 8c5f255 into dev Apr 8, 2026
2 checks passed
@sebastientaggart
sebastientaggart deleted the feature/document-branch-cleanup branch April 8, 2026 14:47
sebastientaggart added a commit that referenced this pull request Apr 8, 2026
…eanup

Document how to clean up merged feature branches
@sebastientaggart sebastientaggart mentioned this pull request Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant