gitGraph
commit id: "Paper draft"
branch "quartorium/paper-round"
checkout "quartorium/paper-round"
branch "…--anna"
checkout "…--anna"
commit id: "Anna's edits (in progress)"
commit id: "Anna finished her review"
checkout "quartorium/paper-round"
branch "…--bob"
checkout "…--bob"
commit id: "Bob's edits (in progress)"
checkout "quartorium/paper-round"
commit id: "Comment by Bob"
commit id: "Anna's change accepted"
commit id: "Bob's change declined"
commit id: "Round finished"
checkout main
commit id: "Lena pushes from RStudio"
checkout "quartorium/paper-round"
merge main id: "Bring in the latest main"
checkout main
merge "quartorium/paper-round" id: "main kept up to date"
Git and the paper trail
Quartorium uses plain Git and nothing else, so it works with any Git host: Codeberg or a self-hosted Forgejo, a university GitLab, GitHub, or a bare repository on a server. It never uses a forge’s API (pull requests, issues). Every step is an ordinary commit you can inspect with any Git tool.
Branches
| Branch | Contains | Who writes it |
|---|---|---|
| your main branch | the paper: always the latest agreed version | you (from RStudio, VS Code, …) and Quartorium, which keeps it up to date with the round |
quartorium/<paper>-<date>-<id> |
the round: the paper as it evolves during review | Quartorium, on behalf of each person |
quartorium/<round>--<name>-<id> |
one reviewer’s copy, with everything they wrote, accepted or not | Quartorium, on behalf of that reviewer |
What is committed, and when
Commits follow moments people understand, not timers. Typing never creates a commit: drafts are saved on the server continuously and shown to others within seconds.
| Moment | Branch | Commit | Git author |
|---|---|---|---|
| A reviewer leaves the page, or doesn’t type for 10 minutes | reviewer’s | Anna's edits (in progress) |
the reviewer |
| A reviewer clicks Finish my review | reviewer’s | Anna finished their review (3 suggested changes, 2 comments) + their note |
the reviewer |
| The lead leaves the page, or doesn’t type for 10 minutes, after editing directly | round | Lena's edits |
the lead |
| The lead accepts a suggestion | round | Anna's change accepted: “…” |
the person who wrote the text |
| The lead declines a suggestion | round | Bob's change declined: “…” (no change to the file) |
the lead |
| A reviewer withdraws their own suggestion | round | Bob withdrew a change: “…” |
the reviewer |
| Comment, reply, resolve, reference request | round | Comment by Anna on “…”: …, Reply by Bob: …, Anna resolved a comment |
the person |
| 👍 on a comment | round | bundled into the next commit | – |
| Someone pushes to main (checked every minute, and when the lead opens the paper) | round | Bring in the latest main (a merge commit) |
Quartorium, or the lead with Sync with main now |
| The round has new commits, and main is kept up to date | main | none: main moves to the round’s latest commit (a fast-forward) | – |
| Finish round | round | Review round finished: … with a summary |
the lead |
| Merge into main (only when main is not kept up to date) | main | the same as above, on request | the lead |
The committer of every commit is “Quartorium”. New commits are pushed to the remote within about 30 seconds.
When a reviewer’s copy is brought up to date with the round, the next commit on their branch is a merge commit with the round as second parent, so git log --graph shows exactly which version of the round they were working on.
Main stays up to date
Main is the paper. During a round, Quartorium keeps main and the round in step, both ways:
- Your pushes come in. When you push to main from RStudio or VS Code, Quartorium merges it into the round within a minute, or immediately when you open the paper in Quartorium. Changed code, new figures, new data and edited text all come along, and co-authors see them the next time they open their link.
- The round goes out. Accepted suggestions, your edits in the browser and comments are put on main as they are committed, normally as a fast-forward with no extra merge commits. A
git pullin RStudio brings all of it, and the comments stay invisible in the rendered paper.
So nobody has to remember to merge, and your own copy never drifts far from what your co-authors are reviewing.
Working in RStudio during a round
Work the way you normally do with Git:
- Pull at the start of a work session (RStudio: Git → Pull).
- Change code, add figures, edit text. Commit.
- Pull again, then push. If Quartorium put something on main in the meantime, Git asks you to pull before you can push, as with any co-author. Git merges it with your commits. That only stops for a decision if you edited the very lines that changed in the round.
Quartorium merges the paper paragraph by paragraph, not line by line, and merges comment threads separately. Edits to different paragraphs never conflict, even neighbouring ones, and neither do code, figures or other files. Quartorium only ever changes the one .qmd under review.
If you and the round changed the same paragraph between two syncs, for example because you rewrote a paragraph in RStudio while a co-author’s version of it was being accepted, your version from main is kept. The round’s version is attached to that paragraph as a comment from Quartorium, so you can compare them and copy from it. Reviewers who were editing that paragraph keep their version as an outdated suggestion. Nothing is lost, and the merge commit records both sides.
When main is protected, or you’d rather merge yourself
Turn off Round ▾ → Keep main up to date for the repository. Your pushes still come into the round, but main only changes when you choose Round ▾ → Merge into main, or when you merge the branch quartorium/… with a pull/merge request on your Git host.
If your Git host refuses Quartorium’s push to main (a protected branch), Quartorium turns the setting off by itself and tells you which branch to merge.
Rounds and links
Start next round creates a new round branch, from main if the last round is on main (as it is when main is kept up to date), otherwise from the last round’s branch. Each person’s link moves to the new round, so co-authors never need a new link. The finished round keeps a private read-only link for the lead (Round ▾ → Earlier rounds).
Looking at it with Git
git fetch origin
git log --graph --oneline origin/main 'origin/quartorium/*' # the whole picture
git log --format='%an: %s' origin/quartorium/paper-2026-11-21-ab12 # one round, by person
git blame paper.qmd # who wrote which line
git diff main origin/quartorium/paper-2026-11-21-ab12 -- paper.qmd # what the round changed
Comments are in the file
Open comment threads are stored in the
.qmditself, in an HTML comment at the end (see How .qmd files are changed). They travel with the paper through branches and merges, and Quarto never renders them. When a round is finished, resolved threads are removed from the file, and the commits that added them keep them in the history.