gwz materialize¶
Materialize workspace members to an explicit target.
Materialization makes local member repositories match a workspace target. With no target flag, GWZ uses the workspace lock.
Targets¶
| Option | Meaning |
|---|---|
--lock |
Materialize gwz.conf/gwz.lock.yml. This is the default. |
--head |
Materialize repository heads. |
--snapshot <name> |
Materialize a workspace snapshot. |
--tag <name> |
Materialize a Git tag across selected members. |
--switch <branch> |
Switch selected members to an existing local branch. |
Only one target flag may be supplied.
Examples¶
Materialize the lock:
Materialize a snapshot:
Materialize a tag:
Switch selected members to an existing local branch:
Allow required destructive behavior explicitly:
Notes¶
- This is not a raw
git pull; GWZ plans the workspace operation first. --switchdoes not create branches, fetch, detach, or move branch refs. It requires the branch to exist locally in every selected member and rewrites the lock from observed post-switch state.- Use
gwz statusbefore materializing when you have local changes. - Use
--dry-runto preview planned member changes. - Use
--partialonly when it is acceptable for some selected members to move while others fail.