Worktree
Share Resources
Share local files and directories across worktrees.
gmc wt share manages resources that should be synced to every worktree.
Add resources
gmc wt share add .env
gmc wt share add node_modules --strategy linkcopy is the default strategy. Use it for secrets and local config. Use link for large identical directories.
Discover
gmc wt share discover
gmc wt share discover --autoDiscovery previews likely shared resources unless --auto is used.
List, remove, sync
gmc wt share list
gmc wt share remove .env
gmc wt share syncNotes
The shared config lives in the repo's Git common directory, such as .git/gmc-share.yml or .bare/gmc-share.yml.