git worktree
Manage multiple working trees
Subcommands
Name | Description |
---|---|
add | Create <path> and checkout <commit-ish> into it |
list | List details of each working tree |
lock | If a working tree is on a portable device or network share which is not always mounted, lock it to prevent its administrative files from being pruned automatically |
move | Move a working tree to a new location |
prune | Prune working tree information in $GIT_DIR/worktrees |
remove | Remove a working tree |
repair | Repair working tree administrative files, if possible, if they have become corrupted or outdated due to external factors |
unlock | Unlock a working tree, allowing it to be pruned, moved or deleted |