Quick Actions
git worktree
Description
Manage multiple working trees attached to the same repository.
Command
git worktree
Examples
Add worktree
git worktree add ../feature-branch feature-branch
List worktrees
git worktree list
Remove worktree
git worktree remove feature-branch
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
add |
string | No | Add a new working tree |
list |
string | No | List working trees |
remove |
string | No | Remove a working tree |
prune |
string | No | Remove working trees that are no longer valid |
Command Info
Category:
Repository Management
Type:
Git
Views:
7
Status:
Active
Tags
worktree
multiple
branches
parallel