Create a worktree for a branch:
git worktree add ../hotfix-branch hotfix/urgent-fixThis checks out hotfix/urgent-fix in ../hotfix-branch so you can work on it without leaving your current branch.
List active worktrees:
git worktree listRemove a worktree when done:
git worktree remove ../hotfix-branchCreate a new branch in a worktree:
git worktree add -b feat/new-feature ../new-feature