Log inGet started

Version control

Updated December 5, 2026
If you know git asIn a world it is
RepositoryA world
Working treeYour live session
ForgeZeroMind
ForkA world forked from another
add / commit / pushthe zm tools of the same names
branch / checkout / mergethe zm tools of the same names
log / show / diff / statusthe zm tools of the same names
Pull requestprOpen, prView, prMerge
Review (gh pr comment / review / checks / close / reopen)prComment, prReview, prCheck, prChecks, prClose, prReopen

These run in the engine shell:

zero zm                  # every versioning tool
zero zm <tool> --help    # one tool's arguments and types

That help comes from the live registry, so it is never out of date.

Two things work differently from a checkout on your own disk, and both follow from a world being a shared, live session.

Writes are durable immediately. There is no save step, and collaborators see your edits as you make them. Commit and push are about history and publishing, not persistence — core/development covers that split.

A branch is per-connected-client. Checking one out changes your view;

everyone else stays where they are.

Branches — several people, one world

A branch gives you your own working tree inside the same world, so two people or two agents can work without overwriting each other.

Create a branch and you stay where you are; checkout is the step that moves you, and it returns once the branch's content has landed, so whatever you run next already targets it. Commit as normal, then merge the branch back.

A clean merge lands a two-parent merge commit. When both sides changed the same path the merge stops and status lists the unmerged paths; resolve each file, then add and commit — that commit records the merge. Merge also takes an abort, which restores the pre-merge tree exactly.

Pull requests

A pull request proposes the work on one (world, branch) pair to another. Both ends are addressable, which is what lets a fork propose work to the world it came from.

A request lives in, and is numbered by, the world it targets — exactly as a forge numbers pull requests on the upstream repository. So a fork's outgoing requests are listed on the world they were opened against, not on the fork.

Read a request before merging it. prList gives you the records — who, when, which branches. prView re-analyses one against the current branch heads and tells you what it actually changes: its mergeability verdict, how many paths conflict, and the diff — every path added, modified or deleted — then its checks, its reviews and its comments. Merging without viewing is merging blind.

Review it where its author reads it. prComment writes on its thread, prReview approves it or asks for changes on the head you read, prCheck runs suites against it and posts the result as a check, and prClose (with a reason and a closing comment) or prMerge settles it; prReopen brings a closed one back. A merge releases each package of the world's own it changes under the version a push would (the core/development guide's release versions), writing the next one into the merged package.yaml when the version it states was released while it was open. The author reads every step in prView. core/collaborating walks through the whole review.

Forks — contributing to someone else's world

Forking a world gives you your own copy to work in.

Work in your fork exactly as you would in any world. When the change is ready, push it — a pull request references published commits, so work sitting only in your session is not part of one. Then open the request: from a fork it goes to the world the fork was made from unless you name another target world.

In a world that is no fork, the same call with no target world proposes within that world, which is the ordinary branch-to-branch request. Every leg (source world, source branch, target world, target branch) is addressable, so the reverse direction is a request too: propose the origin's branch into your fork to take its later work, and merge that in your fork. That is how a fork stays current with what it forked from.

Where to go next

  • core/development — commit versus push, what players run, and how live scene edits reach a commit
  • core/worlds — the world model itself
  • zero zm <tool> --help in the engine shell — arguments and types for any verb above. zm <tool> reaches the same tool by the same dispatcher, so the two spellings are one surface.