Share submodule git data between main repo and git worktrees to save disk space.
Linked submodules share the same checkout state. If your worktrees need submodules at different commits, linking will cause problems:
- All linked worktrees share the same HEAD for each submodule
- Running
git submodule updatein one worktree affects all linked worktrees