Manage multiple working trees attached to the same repository.
More docs at.: git worktree
A git repository can support multiple working trees, allowing you to check out more than one branch at a time. With git worktree add a new working tree is associated with the repository. This new working tree is called a “linked working tree” as opposed to the “main working tree” prepared by git-init or git-clone. A repository has one main working tree (if it’s not a bare repository) and zero or more linked working trees. When you are done with a linked working tree, remove it with git worktree remove.
NAME git-worktree - Manage multiple working trees
SYNOPSIS git worktree add [-f] [--detach] [--checkout] [--lock [--reason <string>]] [-b <new-branch>] <path> [<commit-ish>] git worktree list [--porcelain] git worktree lock [--reason <string>] <worktree> git worktree move <worktree> <new-path> git worktree prune [-n] [-v] [--expire <expire>] git worktree remove [-f] <worktree> git worktree repair [<path>…] git worktree unlock <worktree> DESCRIPTION Manage multiple working trees attached to the same repository.
Check DevIS - Dev Newsletter!
Latest on Web & Tech focusing on Web Development & CyberSecurity!