Create a new worktree branch from master inside worktree/ folder
Creates a new git worktree branch inside the worktree/ folder.
/plugin marketplace add iknite/claude-code-marketplace/plugin install worktree-context@iknite-cc-marketplace<branch-name> [base-branch]Create a new git worktree for branch $1.
!git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || (git branch -l main master 2>/dev/null | head -1 | tr -d '* ')
!git worktree list
worktree/ folderfeature/, fix/, chore/, etc.$2 is provided, use it as the base branchgit symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || git branch -l main master 2>/dev/null | head -1 | tr -d '* '
For a new branch:
git worktree add -b $1 worktree/$1 <base-branch>
If the branch already exists:
git worktree add worktree/$1 $1
After creation, confirm the worktree was created successfully by listing all worktrees.