Skip to lesson
Exit
Isolate CLI work and risky commands1 / 3

2 min lesson

When worktree setup touches a shared system

Remove a shared database migration from worktree setup before another isolated checkout is created.

Step 1 of 3

A new checkout is isolated on disk. Its setup commands can still change the same database used by everyone else.

Local setup or shared side effect

Interactive diagram. Tab through its regions; each focused region shows its detail in the panel below.

diagram: compare

Review setup commands before worktree creation.