cmd-worktree-merge

Installation
SKILL.md

Merge all git worktrees under the .trees/ directory into the current branch.

Steps

  1. Run git worktree list to identify worktrees in .trees/.
  2. For each worktree (in alphabetical order): a. Get its branch name from git worktree list. b. Run git merge <branch> --no-edit. c. If conflicts arise, analyze and resolve them, preferring to combine both sides when possible. d. After successful merge, run git worktree remove <path> and git branch -d <branch>.
  3. Verify final state with git status and git log --oneline -n 10.

{{INPUT}}

Installs
23
First Seen
Apr 27, 2026
cmd-worktree-merge — gsmlg-dev/code-agent