git-worktree
Verified for current stable LTS
Git Worktree Command: Add New Worktree With New Branch
Use for add new worktree with new branch with Git Worktree. Exact CLI syntax to add new worktree with new branch using Git Worktree.
When to use this: Use for add new worktree with new branch with Git Worktree.
Command Syntax
git worktree add <path/to/directory> -b <new_branch> git worktree add <path/to/directory> -b <new_branch> Command Breakdown
-b- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to add new worktree with new branch using Git Worktree.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Git Worktree Command: Add New Worktree For Branch
git worktree add <branch> Git Worktree Command: Add New Worktree With Branch git worktree add <path/to/directory> <branch> Git Worktree Command: List Working Trees git worktree list Git Worktree Command: Move Existing Worktree git worktree move <path/to/worktree> <new/path> Git Worktree Command: Prune Worktree Metadata git worktree prune