14 lines
512 B
Markdown
14 lines
512 B
Markdown
# Initialize parallel git worktree directories for parallel Claude Code agents
|
|
|
|
## Variables
|
|
FEATURE_NAME: $ARGUMENTS
|
|
NUMBER_OF_PARALLEL_WORKTREES: $ARGUMENTS
|
|
|
|
## Execute these commands
|
|
> Execute the loop in parallel with the Batch and Task tool
|
|
|
|
- create a new dir `trees/`
|
|
- for i in NUMBER_OF_PARALLEL_WORKTREES
|
|
- RUN `git worktree add -b FEATURE_NAME-i ./trees/FEATURE_NAME-i`
|
|
- RUN `cd trees/FEATURE_NAME-i`, `git ls-files` to validate
|
|
- RUN `git worktree list` to verify all trees were created properly |