⌕
RUEN

Using git worktrees for parallel tasks

A second checkout is cheaper than stashing when two tasks touch one repository.

When two tasks touch the same repository, a second checkout is cheaper than stashing. git worktree add ../task-b -b task-b origin/main gives an isolated directory that shares the object store.

Remember that untracked files such as .env do not follow you there.

git worktree list
git worktree remove ../task-b

#git#workflow