git-worktree
Verified for current stable LTS
Git Worktree Command: Add Worktree With New Branch
Use for add worktree with new branch with Git Worktree. Exact CLI syntax to add worktree with new branch using Git Worktree.
When to use this: Use for add 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 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: Add New Worktree With New Branch git worktree add <path/to/directory> -b <new_branch> Git Worktree Command: Add Worktree For Branch git worktree add <branch> Git Worktree Command: Add Worktree With Checked Out Branch git worktree add <path/to/directory> <branch>