Documentation Index
Fetch the complete documentation index at: https://docs.vers.sh/llms.txt
Use this file to discover all available pages before exploring further.
vers repo fork
Fork a tag from another org’s public repo into your own org. Produces a running VM, a fresh commit, and a repo/tag pointing at that commit, all owned by you.Synopsis
Description
fork is a one-shot action that:
- Resolves the source public reference (
org/repo:tag) - Branches a new VM from the source commit (copy-on-write, fast)
- Commits the VM, creating a new commit owned by your org
- Creates a repo in your org (or reuses an existing same-named one)
- Creates a tag in that repo pointing at the new commit
git fork, there’s no tracked upstream relationship. Once the fork completes, your copy is fully independent. To pull fresh upstream changes later, run vers repo fork again.
The branch step uses a Ceph CoW clone so it’s fast: seconds even for large images. The commit step takes real time relative to the VM’s dirty state, but this is no slower than any other
vers commit.Options
| Option | Description |
|---|---|
--repo-name | Name for the repo in your org. Defaults to the source repo name. |
--tag-name | Name for the tag. Defaults to the source tag name. |
Examples
Fork a supported image
- A running VM (
vm-7a1c…) ready to SSH into - A commit
c9e4…owned by your org - A repo
pi-agentin your org with taglatestpointing at that commit
Fork with renaming
- The source repo name collides with one you already have (and you don’t want the tags to mix)
- You want a versioned tag from the start (
v0,baseline,initial, etc.) - The upstream tag name is ugly
Fork into an existing repo
Fork, then use immediately
Error Cases
Source not found
Target tag already exists
Forking with default names twice in a row will succeed the first time and fail the second:--tag-name to pick a different name, or delete the existing tag first:
Invalid reference format
:latest shorthand.
See Also
- Forking a supported image - full walkthrough
vers connect- SSH into the forked VM- Repositories and Tags - the fork model in detail