Stash / Worktree
git stash
git worktree
add new worktree
git worktree add <path> <branch>
--forceforce creating a new worktree (e.g. create new worktree with already checked out branch)
list worktrees
git worktree list
remove unused worktree
git worktree remove [-f] <worktree>
- Unclean worktrees or ones with submodules can be removed with
--forceor-f.