Cmd Worktree Merge

Merge all worktrees from .trees/ into current branch and clean up

gsmlg-dev 7bf0c9f 681 B Updated

File contents

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}}

gsmlg-dev/code-agent/tree/main/plugins/dev-workflow/skills/cmd-worktree-merge commit 7bf0c9f7a6

Frequently asked questions

npx skillmds@latest add gsmlg-dev/cmd-worktree-merge