Dashboardcligit worktree move /tmp EXDEV

git worktree move /tmp EXDEV

Category: gotcha
Confidence: 1.00
ID: 01a0296c-9e6c-72c9-8534-3073575f842e
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0N9GEUd1P60OZUYup
Created: 2026-08-22 12:22:59
Updated: 2026-08-22 12:22:59

Content

Trap: moving an OpenCode worktree from /tmp/opencode into the shared worktree parent with git worktree move looks like a normal relocation. /tmp is an isolated filesystem, inaccessible to the user and often on another device, so Git fails with Invalid cross-device link. Fix: recreate the worktree in the shared parent at the same commit, transfer edits through a reviewed patch, verify byte-for-byte, then remove the isolated copy.

Move to: