-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
maintainer-scrapRough notes for AI implementation. Not for human eyes.Rough notes for AI implementation. Not for human eyes.
Description
Summary
Add git worktree prune execution to the clean-branches command.
Motivation / Purpose
When working with git worktrees (e.g., via git gtr), stale worktree references can accumulate over time. The clean-branches command already handles branch cleanup and remote pruning, so it's a natural place to also prune stale worktree entries.
Details
Modify .rulesync/commands/clean-branches.md to include a git worktree prune step.
Current steps:
- Delete all local branches except for current branch and main branch.
- Run
git pull --prune
Proposed steps:
- Delete all local branches except for current branch and main branch.
- Run
git pull --prune - Run
git worktree prune
Files affected
.rulesync/commands/clean-branches.md
Additional Context
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
maintainer-scrapRough notes for AI implementation. Not for human eyes.Rough notes for AI implementation. Not for human eyes.