Branches are workspaces
ReasonOS runs one server per active branch. A branch and a workspace are the
same object seen two ways: push to it with git, or open it in the editor and
it is already running. See Collaboration for what
happens when several people open the same branch.
Where a project’s code lives
When you create a project, the Start from choice decides the repository’s origin:
The project name becomes part of its URLs (including the clone URL), so what
you type is folded into a slug — the creation screen shows exactly what the
name will be before you confirm.
GitHub and GitLab appear in the “Where the code lives” picker but connecting
them as first-class hosts is still in progress. In the meantime, Import a git
repo works with any remote URL — including repositories on GitHub or GitLab —
using your SSH key.
Browsing a repository
Every project has a Code section with three tabs — Files, Branches, and Change requests — plus a History section. All of it reads ReasonOS’s synced copy, so it works with no server running:- Files — a tree browser with the last commit touching each path, the branch picker, and breadcrumbs. Each directory renders its README below the listing; files get syntax highlighting and a Blame toggle. Your position lives in the URL, so any file on any branch has a link you can share.
- Search — fixed-string code search over the branch you’re browsing, with matches opening straight into the file.
- Download — a
.tar.gzarchive of the branch you’re viewing. - History — commits grouped by day; selecting one shows the commit’s full diff.
Branches and branch nodes
The Branches tab is more than a ref list. Each row shows the branch’s divergence from the default branch (↑2 ↓17), its last commit, and — because
every branch can have a server — what that server is doing right now:
server running, starting, or not responding. A branch created in
ReasonOS that nobody has pushed to yet is tagged not pushed yet.
1
Create a branch
New branch creates the ref on the origin immediately. The “Start a
server for this branch” checkbox is optional and unchecked by default —
most branches never need one, and you can start one later.
2
Open the workspace
Open workspace (from the Files bar, a branch row, or the Workspace
rail item) connects the editor to that branch’s node, starting one if none
is running. Everyone who opens the same branch lands on the same node —
see Collaboration.
3
When a server can't start
If the branch’s server fails to start, the workspace shows a refusal
screen instead of the editor: which step failed (cloning, git
authentication, checking out the branch, or starting the server), how many
times it has failed and when, and one action for that step — Project
settings for a remote or credential problem, the project’s branch list
for a branch that no longer exists on the remote. If a previous server or
workspace needs attention, the screen explains the refusal and offers
Try again; an operator must resolve the underlying problem before a
retry can succeed. The failure belongs to the
branch, not to your browser: a reload or a teammate opening the same branch
sees the same record, marked “Not retried”, and nothing is re-attempted
until someone chooses Try again. The branch list shows the same
failure beside the branch instead of offering to start a server.
4
Stop or delete
Every branch row with a running server has a stop button. Deleting a
branch deletes it on the origin — for everyone — and the default
branch can’t be deleted at all. Settings → Branch servers lists every
running server with who is currently on it, so you know whether stopping
one interrupts a teammate.A deliberate Stop keeps the saved workspace and holds the branch stopped.
Opening the branch or reconnecting an editor does not silently restart it.
Choose Start a server on the branch list or Start server in the
workspace when you want it running again. An authorized agent can explicitly
start it too. If the server is still stopping, wait for it to finish before
trying again. If Stop was not confirmed and it keeps refusing, stop it
again from Branch servers. Unexpected disconnections still use the
normal automatic recovery path; only a deliberate Stop holds the branch
stopped. Stopping is different from Stop and destroy workspace,
which permanently erases the saved workspace after confirmation.
Moving a workspace to another branch
A branch server serves one branch at a time. Opening another branch always uses that branch’s own server; it never switches the one you’re on. To bring the server you’re working in to another branch instead, a person opens the stack pill in the editor’s top bar and chooses Move here beside that branch. A move checks your uncommitted changes first. Changes that don’t conflict with the destination come along; if one would be lost, the move is refused before anything changes and names the file. A branch that already has its own server can’t be moved onto. In a ReasonOS version with automatic workspace following, everyone connected to the server follows it to the new branch within a few seconds, keeping the issue and view they had open. A tab with unsaved files, or a file still uploading to an issue, stays and says why, then follows once that work is saved or finished. In a version without it, others see that the server’s checkout is on another branch and choose Open its workspace to follow; in older versions still, they open the new branch’s workspace themselves from the branch list. Nothing moves a workspace except a person’s Move here: choosing a branch from the branch list, or anything an agent does, never does. See Getting Work done for a move in a full walkthrough.Cloning and pushing
ReasonOS-hosted repositories
The Files tab shows the clone URL with an HTTPS/SSH switch. Copy your project’s actual URL; the commands below are alternative examples:-
git clone https://reasonos.example.com/git/my-service.git— downloads a local copy over HTTPS; expect clone progress and a newmy-servicedirectory, or an access error for a private repository without supported authentication. -
git clone ssh://git@reasonos.example.com:2222/my-service.git— downloads a local copy using your registered SSH key; expect clone progress and a newmy-servicedirectory. - SSH authenticates with the public keys you register under your profile’s SSH keys settings — paste a public key once and every hosted repository your organization gives you access to works. Pushing requires being a member of the project’s organization, and the private key never leaves your machine.
- HTTPS serves signed-in reads, and public projects in a public organization clone anonymously — no credential at all. From a terminal on your own machine, use SSH for anything private.
- Inside a workspace there is nothing to set up: a branch node’s checkout arrives already authenticated with its own short-lived repository credential.
-
Git LFS works out of the box on hosted repositories — the endpoint is
derived from the clone URL, so
git lfs push/pullneed no.lfsconfig.
git remote add reasonos ssh://git@reasonos.example.com:2222/my-service.git— records the destination under the namereasonos; expect no output on success. Run it inside the local repository you want to upload.git push -u reasonos main— uploads your localmainbranch and records its upstream (-u); expect push progress and tracking confirmation, or a permissions/protection refusal. Use your actual branch name if it differs.
Imported repositories
Nothing about your git life changes: push to your existing remote exactly as before. ReasonOS’s synced copy notices new branches and commits and the project’s pages follow; every screen has a refresh for when you don’t want to wait for the next sync. Branches you create or delete in ReasonOS are created and deleted on your origin, so the two never drift.Branch rules
Settings → Branch rules holds the project’s protection rulesets. A ruleset names a set of branches by pattern — the default branch, all branches, or a pattern likerelease/* — so new branches fall under protection automatically
rather than needing a row someone remembers to create.
Rules cover the refs themselves:
- Restrict who can create, update, or delete matching branches
- Block force pushes
- Require linear history (no merge commits arrive by push; merges must squash or rebase)
- Require signed commits
- Require a change request — matching branches move only through a merged change request; direct pushes are refused
- Required approvals, dismiss stale approvals, require approval from someone other than the last pusher, require review threads resolved
- Required checks — named CI workflows that must pass at the exact revision being merged
- Allowed merge methods
Signed-commit enforcement currently checks that a signature is present;
verifying signatures against registered keys is still in progress.
Reviewing and landing changes
Changes land through change requests — ReasonOS’s pull requests, computed from its own copy of the repository so they work for any origin with no code host connected. Open them from the Code section or letrbs stack submit open one per branch of a stack; review
happens on a single scrolling screen with commit-pinned threads and verdicts;
hosted repositories merge with one button, guarded by branch rules and
required checks.
The full flow — opening, reviewing, stacks, merging, and the cross-project
inbox — is on Change requests.