Lanes, env profiles, and worktrees

Lanes keep branch, env profile, and port pairing together so you can switch local vs staging without hand-editing files.

Typical setup

  1. Local lane — day-to-day branch and .env profile.
  2. Staging lane — UAT branch, staging env profile, optional different port.
  3. Switch lanes in the project — Rig points at the right env.

Worktrees

When a lane uses a git worktree path, Rig targets that folder so two checkouts of the same repo can stay isolated. Pair with sessions if you fully stop one client stack before starting another.

Related

https://userig.app/docs/lanes-worktrees