A familiar place to start

Coming from Git
or Perforce

Cargo Bay uses Lore to version code and large binary files together. You’ll recognize working copies, history, branches, and merges. This guide maps those ideas to Cargo Bay’s current workflow.

Commit locally. Upload to share.
A Cargo Bay commit records a version on your computer. Upload in the desktop, or cargobay push, sends local commits to the shared repository.

The concepts side by side

The Perforce column describes the usual centralized P4 workflow, also known as Helix Core. These are conceptual comparisons, not interchangeable commands.

TaskGitPerforceCargo Bay
Start a shared repositoryInitialize locally, then add a remote and pushCreate a depot or stream on the serverCreate repository makes the hosted repository and your local copy together
Save a versionLocal commitSubmit a changelist to the serverLocal commit
Share changesPush commitsSubmission records shared historyUpload / push commits
Prepare changesStage changesOpen files in a pending changelistStage selected files
Choose local filesSparse checkoutWorkspace view and syncFolder selection in Local-copy settings
Coordinate binary editsAdditional tooling, such as LFS lockingExclusive checkout or submission locksAdvisory locks on the current branch

One hosted home per repository

Every Cargo Bay repository starts as a hosted repository. Each local copy is a clone of it and records that connection in its own folder. Like Git, you commit locally and upload later. Like Perforce, there is one shared server for the repository.

  • Create repositories in Cargo Bay. Create repository in the desktop, or cargobay create NAME DESTINATION, creates the hosted repository and connects your folder in one step.
  • There are no remotes to add or change. You cannot point a local copy at another server, or push a branch into a different repository.
  • Lore repositories created elsewhere cannot be uploaded yet. To bring that work into Cargo Bay, copy its files without the .lore folder into a new repository. This starts new history.
  • Work stays local until you can upload it. Local commits are kept while you are signed out, offline or waiting for access. Use Share commits once you are connected. If someone else uploaded to the branch first, choose Review and merge before you upload. If the owner removes your access, your local files and history remain, but you cannot upload.
  • Each clone is a separate local copy. All repositories lists the folders you created, cloned or opened in Cargo Bay; it does not scan your disk. Remove from list only forgets the location. Open local copy adds a moved folder back, and it reconnects to the hosted repository. The CLI works with any local copy by its path.

If you know Git

Edit your files, inspect the changes, stage the files you want, and commit. Local commits and a separate push should feel familiar. Cargo Bay uses Lore repositories and its own CLI; Git commands, remotes, revision shortcuts, and configuration do not carry over.

  • Large files use the same repository. Code and binary assets are versioned through Lore. You do not configure Git LFS for a Cargo Bay repository.
  • Stage whole files. The current desktop and CLI select files, rather than individual diff hunks. Review the staged set before committing.
  • Updates and merges are separate. Check sharing status / check inspects shared state. Get updates / pull applies clean fast-forward updates. Divergent histories need a reviewed merge, rather than an automatic merge or rebase during pull.
  • Branches have explicit guards. Creating a branch also switches to it. Local branch creation and switching require a clean workspace. Remote-only branch checkout and cross-branch server merging are not available.
  • Browsing can need a download. Local commits work offline, and cached history and content are available locally. Do not assume every historical file is cached; supported CLI reads use --server to fetch missing content.

If you know Perforce

A shared home for code and assets, selected working files, and coordination around binary edits should feel familiar. The main change is that saving a version and sharing it are separate actions.

  • There is no required checkout-for-edit step. Edit files in your normal tools, then refresh, stage, and commit. Acquiring an advisory lock is a separate coordination action.
  • A commit is not a submit. It records local history without publishing it. Upload when you want collaborators to receive the commits.
  • Staging is not a set of named changelists. Cargo Bay has a staged set for the workspace. It does not provide Perforce-style pending changelists or shelving.
  • Locks are advisory. Other contributors can still edit, commit, and upload a locked file. Locks are scoped to the current branch, need an explicit server check, and must be released by their owner. See File locking.
  • Sharing is repository-wide. Current contributors can read and write the repository. Cargo Bay does not offer Perforce-style path permissions or read-only contributor roles.

Working files, commits, and conflicts

Folder materialization filters which committed folders are present in your checkout. All files remain in the commit. Change the selection in Local-copy settings to include a folder again, using cached data or downloading missing content. Excluding a folder preserves local history, unuploaded commits, and cached data; it does not clear the cache.

Text changes can merge when they do not conflict. Conflicting binary versions need a choice of which file to keep. Cargo Bay leaves even a conflict-free merge pending for review and an explicit finish, which creates a local merge commit. Upload is still separate.

Try a small project first

Create a repository and choose a folder with a copy of a few project files. Cargo Bay creates the hosted repository and connects that folder; you choose which files to stage and commit. Keep your original repository and its history: copying working files starts new Cargo Bay history and does not import Git commits or Perforce changelists. The Getting started guide walks through the desktop setup.

With the CLI enabled, run these from the Cargo Bay workspace, replacing the file and author:

cargobay status
cargobay stage notes.txt
cargobay commit -m "Update notes" --author "Your name"
cargobay push

To inspect and receive collaborators’ work, use cargobay check and then cargobay pull. If histories have diverged, review and merge in the desktop’s Branch tools. Run cargobay --help for the installed command reference.

About the comparisons

Git supports partial clones and sparse checkouts, and Perforce also supports distributed configurations; this guide compares common workflows. See the official Git overview, clone options, Perforce workspaces and changelists, and checkout and locking reference.

Start your first project