Command

git worktree

Create a linked checkout with independent HEAD, index and working files but shared repository objects.

Formal Syntax & Structure

git syntaxgit
git worktree add -b BRANCH PATH BASE
Git Reference