From GitHub to Arboretum
Six steps. The first three take a few minutes and change nothing on GitHub, so you can try it alongside what you have.
Get the command-line tool
One program, arb, is the whole client.
- Linux (x86-64): sign in to download it, then
chmod +x arb && mv arb ~/.local/bin/ - macOS: build it once from source. Open the Arboretum source directory on this server, press Download, unpack it and run
cargo build --release(needs Rust from rustup.rs); the program istarget/release/arb.
Sign in
arb login arboretum.buusystems.com
Use your user name or email. This is remembered, so you do it once per machine.
Bring a repository over, with its history
arb import-git ~/code/myproject main --into myproject
Every commit on the main branch becomes a numbered change under myproject/ in the main tree. GitHub is only read, never written. Run the same command again any time to pull in newer commits, so you can keep working on GitHub while you evaluate.
Work in it
arb checkout main --path myproject cd main # edit files arb status # what changed arb submit -m "Describe the change" arb sync # pick up everyone else's changes
There are no branches and nothing to stage. --path checks out just your project, not the whole tree. A submit only looks at the files you changed, so other people's work elsewhere never blocks you; if someone changed the same file, it is merged function by function.
Add guardrails
Put an ARB.toml in the project directory and submit it:
owners = ["ross", "liam"] [[check]] name = "tests" run = "pytest -q"
From then on a change under that directory waits as a proposal until its checks pass and, if the author is not an owner, an owner approves. It then lands by itself. Checks run on a machine where arb runner is running.
Switch over
When the team is ready: merge or close what is open on GitHub, run the import one last time, and archive the GitHub repository so nobody pushes to it by mistake. From then on the directory here is the source of truth. The import is one way, so pick a day and move the whole project at once.
Words: a tree is a repository; a change is a commit on its one trunk, numbered 1, 2, 3; a workspace is your work in progress, kept on the server; a proposal is a change waiting for checks or approval.