worktree-cleanup

worktree-cleanup

Remove a worktree after its branch has been merged.

Usage

bearing worktree cleanup <repo> <branch>

Arguments

ArgumentDescription
repoName of the repository
branchBranch name of the worktree to remove

Example

bearing worktree cleanup myapp feature-auth

What It Does

  1. Removes the worktree folder ({repo}-{branch})
  2. Runs git worktree prune to clean up git metadata
  3. Removes the entry from local.jsonl
  4. Optionally updates workflow.jsonl status to merged

Notes