jacarty

Merge Worktree — Git skill for Claude Code

Git community

Your task is to merge in the $ARGUMENTS worktree in the .trees/$ARGUMENTS folder.

How to install Merge Worktree

Installs to ~/.claude/commands/jacarty-coding-toolkit-merge_worktree.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/jacarty/coding-toolkit/HEAD/.claude/commands/merge_worktree.md -o ~/.claude/commands/jacarty-coding-toolkit-merge_worktree.md

Restart Claude Code, or start a new session, for it to be picked up.

What Merge Worktree does

Your task is to merge in the $ARGUMENTS worktree in the .trees/$ARGUMENTS folder.

Follow these steps:

  1. Change into the .trees/$ARGUMENTS directory.
  2. Examine the changes that were made in the latest commit.
  3. Change back to the root directory.
  4. Merge in the worktree.
  5. There might be merge conflicts. Use git status, git diff --name-only --diff-filter=U, or git ls-files -u to list files that have merge conflicts.
  6. Manually resolve conflicts based on your knowledge of the changes.

Alternatives in Git

  • Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★
  • Merge Dependabot PRs — @description Evaluate and merge dependabot PRs with parallel builds, dependency-aware batching, and transitive 1.6k ★
  • Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★

Full documentation available on GitHub

View Source Repository