git worktree

Manage multiple working trees attached to the same repository.
More information.
git worktree add {path/to/directory} {branch}
git worktree add {path/to/directory} -b {new_branch}
git worktree list
git worktree prune
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY