Skip to content

.tip

· one of the small things

git worktree instead of stash

You don't need a stash to review a colleague's branch while your own work is half done. A worktree checks the other branch out into a second directory that shares the same repository.

git worktree add ../review feat/thing
cd ../review && pnpm install

That's two editors and two dev servers, with no lost changes. Run git worktree remove ../review when you're done.

git