Worktree banner
barefootford barefootford

Worktree

Development community

Description

# Create Worktree with Library Create a new git worktree with all libraries and media from main. ## Arguments `<branch-name>` - The name for the new branch and worktree Example: `/worktree feature-test` User provided: $ARGUMENTS ## Instructions 1. Parse the branch name from arguments 2. Always use the main branch worktree at `/Users/andrew/code/buttercut` as the source 3. Create a new git worktree at `../<branch-name>` with a new branch of the same name 4. Copy the entire `libraries/` dir

Installation

Installs to ~/.claude/commands/barefootford-buttercut-worktree.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/barefootford/buttercut/HEAD/.claude/commands/worktree.md -o ~/.claude/commands/barefootford-buttercut-worktree.md

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

Full documentation available on GitHub

View Source Repository