Skip to content

Git storage

Git storage opens a model from a GitHub or GitLab repository, and saves it there as a commit: github.com, gitlab.com, GitHub Enterprise Server and self-managed GitLab, through their REST APIs, with nothing to install. A model saved or opened this way stays bound to its file, so the next save asks only for a message, and a save never overwrites a change it has not seen.

Git storage is a module: File › Settings… › Modules or ?git=off switches it off for a session, and an installation can leave it out (Deployment configuration file).

https://app.linked.archi/la-gram/?git=off

Set up

What Git storage needs:

Needed for
a repository on github.com, a GitHub Enterprise Server, gitlab.com or a self-managed GitLab everything
an access token for the host a private repository, and every save, pull request and merge request
your name and address in File › Settings… › You commits in your name rather than the token owner's (Who commits)
the host in the deployment's list, where it has one a deployment that names its Git hosts (For whoever deploys la-gram)

A public repository opens, pulls and shows its history with no token. la-gram asks for a token the first time an action needs one, in Access token for github.com (or the host's name), and keeps it as Access tokens says. Make the token on the host beforehand, as below, with what la-gram needs and nothing more.

A token for GitHub

A fine-grained personal access token, for github.com and a GitHub Enterprise Server alike:

  1. On GitHub, open your picture's menu › Settings › Developer settings › Personal access tokens › Fine-grained tokens, and choose Generate new token.
  2. Token name: what it is for, la-gram. Expiration: a date — 90 days, say.
  3. Resource owner: you, for your own repositories, or the organization that owns the model repository. An organization may have its owners approve each token: until one does, the token reads public repositories only, and saving fails (When something fails).
  4. Repository access: Only select repositories, and choose the model repositories.
  5. Permissions › Repository permissions:

    Permission Access For
    Contents Read and write opening, pulling, checking and the history (Read-only is enough for those), and saving, Save to Git as… and Update from main…
    Pull requests Read and write Open merge request…: finding the request already open, and opening one
    Metadata Read-only reading the repository's default branch; GitHub adds it to every token, and it cannot be left out

    No other repository permission, and no account permission: la-gram reads only the token's own public profile, which needs none.

  6. Choose Generate token, and copy it: GitHub shows it once.

A classic token works too, with the repo scope (public_repo for public repositories only), but it reaches every repository you can, and cannot be limited to one: prefer the fine-grained token. On a GitHub Enterprise Server, make the token on that server; where it offers no fine-grained tokens, use a classic one with repo.

A token for GitLab

A personal, project or group access token, on gitlab.com and a self-managed GitLab alike:

  1. On GitLab, for a personal token: your avatar › Edit profile › Personal access tokens (Access tokens on older versions) › Add new token. For a project or group token, which acts as a bot user of its own: the project's or group's Settings › Access tokens › Add new token, where your GitLab offers them.
  2. Token name: la-gram. Expiration date: a date; GitLab asks for one.
  3. Select scopes:

    Scope For
    api everything: opening, pulling, checking, the history, saving, Save to Git as…, Update from main… and Open merge request…
    read_api opening, pulling, checking and the history only, without saving

    One of the two, nothing else. read_repository and write_repository are not enough on their own: read_repository reaches Git over HTTPS and the Repository Files API, write_repository Git over HTTPS alone, but la-gram also reads the project, its branches and its commits, and commits through the Commits API, which only api writes to. read_user is not needed either: api and read_api let la-gram read the token's account.

  4. For a project or group token, Select a role: Developer saves to branches that are not protected; saving to a protected branch — the default branch, as GitLab sets projects up — needs the role its protection allows, Maintainer unless the project changed it.

  5. Choose Create token, and copy it: GitLab shows it once.

A self-hosted GitHub or GitLab

github.com and gitlab.com are known by their names. For another host, la-gram takes the kind from the address (Links) or asks you to choose GitHub (also GitHub Enterprise Server) or GitLab (also self-managed) the first time, and remembers it on this machine; a deployment can name its hosts instead (git.hosts). The REST API is at https://<host>/api/v3 on a GitHub Enterprise Server and https://<host>/api/v4 on GitLab, unless the deployment names another.

In the web app, the browser calls the host's API from la-gram's page, so the host must answer requests from another site (cross-origin requests). github.com, gitlab.com, and a GitHub Enterprise Server or a GitLab as installed do; a proxy in front of a self-hosted server that removes those answers leaves la-gram with git.example.com could not be reached, or it refused a request from this page (a cross-origin refusal). The desktop app is not restricted that way.

For whoever deploys la-gram

A deployment can set Git storage up for everyone who uses it, in la-gram.config.json (Deployment configuration file):

Key Does Default
modules.git on, off until each user switches it on, or unavailable on
git.hosts the hosts la-gram may talk to, each with its kind and, optionally, its API's address any host
git.rememberTokens ask, or never to keep every token for the session only ask
git.defaults the repository, branch, folder, commit message and branch prefix the dialogs start from none for the repository and the branch; models, {action} {model}, la-gram/

For example, a company GitLab and github.com, tokens never remembered:

la-gram.config.json
{
  "git": {
    "hosts": [
      { "host": "git.example.com", "kind": "gitlab" },
      { "host": "github.com", "kind": "github" }
    ],
    "rememberTokens": "never",
    "defaults": { "repository": "https://git.example.com/architecture/models" }
  }
}
  1. Make a token as above, for the host and the repository.
  2. Choose File › Git › Open from Git…, paste the repository's address, and choose Open: la-gram asks for the token, and lists the repository's model files.
  3. Open one, change it, and choose File › Git › Save to Git: Committed … says the token can save.

File menu

Git storage adds its entries to the File menu, together in one submenu, File › Git ▸, after Save as ▸: opening first, then saving and the rest.

Entry Shown Does
Open from Git… always opens a model from a repository
Save to Git… the model is not bound to a file commits it as a new file, or over one
Save to Git the model is bound, its repository and branch beside it commits it to its file, asking for a message
Save to Git as… bound commits it to another branch or file
Pull from Git bound, outside a shared room incorporates the current branch's newer model, preserving local changes, without committing
Check for remote changes bound, outside a shared room checks the bound file and opens the Git status tab, without changing the model
Update from main… bound merges another branch into the bound one
Open merge request… bound proposes the bound branch for merging (a pull request from the branch, on GitHub)
  1. Open File, and point at Git: with Git storage on, Open from Git… is first.
  2. Save the model to Git once: Save to Git… becomes Save to Git, with its repository and branch.

Messages

What a Git action did — Committed abc12345 to acme/arch · main · models/shop.ttl — https://…, a pull's outcome, the conflicts a merge left, an error — stays in the bottom right corner until you close it with its ×; several stack, the newest last. It covers what is under it — the Conflicts tab's buttons, say — until you close it. Select its text to copy it. A web address in it is a link, which opens in a new tab (the desktop app opens it in your browser). Pulling … from …, a step on the way, goes by itself, as messages outside Git do.

  1. Choose Save to Git, and OK with a message: Committed … appears, with the commit's link.
  2. Click the link to see the commit on GitHub or GitLab, then close the message with ×.

Open from Git

File › Git › Open from Git… asks for:

Field Default What it is
Address your default repository, else the last one used, else the deployment's a link as the browser shows it (see Links)
Host Decided by the address (github.com, gitlab.com) or GitHub (also GitHub Enterprise Server), GitLab (also self-managed): for a host whose kind the address does not say
Branch your default branch, else empty empty: the one the address names, or the repository's default

A link to a file opens it. A link to a repository, a branch or a folder lists its model files to choose from, with Another branch… to list another branch's. Opening replaces the open model, after asking if it has unsaved changes. A public repository opens without a token; a private one asks for one (Access tokens).

  1. Choose File › Git › Open from Git….
  2. In Address, paste the repository's link, https://github.com/acme/architecture.
  3. Choose Open, then the model file in the list.

A model can open from Git as la-gram starts, with ?git= and the file's link:

https://app.linked.archi/la-gram/?git=https://git.example.com/architecture/models/-/blob/main/shop.ttl

The address is a link as the browser's address bar has it, or as Clone gives it.

Link Names
https://github.com/acme/architecture a GitHub repository
…/tree/main, …/tree/main/models a branch, a folder on it
…/blob/main/models/shop.ttl a file on a branch
https://gitlab.com/acme/architecture/models/-/blob/main/shop.ttl GitLab, subgroups and all (/-/ marks GitLab)
git@github.com:acme/architecture.git the SSH address, read as the HTTPS one

The host decides the kind: github.com and gitlab.com are what they are; a /-/ in the path is GitLab's; a host with github. in its name is taken as GitHub Enterprise, any other as a self-managed GitLab, unless Host says otherwise. The API is https://api.github.com, https://<host>/api/v3 (GitHub Enterprise) or https://<host>/api/v4 (GitLab). Links must be https://, with no user name or token in them. A branch with a slash in its name (feature/x) cannot be told from the folder after it: the link's first segment is taken as the branch, and the dialog shows both to correct.

Git link
https://github.com/acme/architecture
https://github.com/acme/architecture/tree/main/models
https://github.com/acme/architecture/blob/main/models/shop.ttl
https://gitlab.com/acme/architecture/models/-/blob/main/shop.ttl
https://git.example.com/architecture/models/-/tree/main/models
https://github.example.com/acme/architecture/blob/main/models/shop.ttl
git@github.com:acme/architecture.git

Save to Git

File › Git › Save to Git…, for a model not bound to a file, asks where:

Field Default What it is
Repository your default repository, else the last one used, else the deployment's the repository's link
Host Decided by the address as for Open from Git…
Branch your default branch, else empty: the repository's default the branch to commit to, or to start the new one from
New branch empty: commit to the branch a branch to make, started from Branch
Path models/<model>.trig: the folder for new files, then the model's name in lower case, models/acme-online-shop.trig — TriG, as File › Save writes the file, made when it is not there; its extension picks the format: .ttl, .trig, .jsonld, .nq, .nt, .rdf
Commit message {action} {model} filled in: Add Acme online shop the commit's message

The message template knows {action} (Add for a new file, Update for one there), {model}, {path} and {branch}; Settings changes it. Commit saves. From then on, the model is bound to that file: File › Git › Save to Git asks for the commit message only, and Model settings shows the file's address, to copy. A save to a new branch offers to open its merge request at once.

  1. Choose File › Git › Save to Git….
  2. In Repository, paste https://github.com/acme/architecture; leave Branch empty.
  3. In New branch, type la-gram/shop, and choose Commit.
  4. Change the model, then choose File › Git › Save to Git: only the message is asked.

Who commits

A commit is written by you, as File › Settings… › You says — your name, else your Git account's, and your address — and committed by the token's owner: the host lists your name as its author, in History and on its own pages. GitHub takes an author only with both a name and an address; without an address, a commit on GitHub is the token owner's. With nothing in You, every commit is the token owner's.

With a token for a host, la-gram also asks the host, once a session, which account the token acts for — its username, page, name and public address — and keeps it on this machine with your settings. You shows it as Git account, and Model settings as Your Git account, beside the model's address; la-gram records it with your edits (the account's page and username) unless you untick Record my Git account with my edits. A GitLab token without the read_user, read_api or api scope cannot read it: the account stays unknown, and nothing else changes.

  1. Choose File › Settings…, You: type Ada Lovelace and ada@example.org, and choose Apply.
  2. Change the model, and choose File › Git › Save to Git.
  3. Open the History tab: the commit is listed first, by Ada Lovelace.

Save to Git as

File › Git › Save to Git as…, for a bound model, asks the same as an unbound save, starting from the bound file: to commit it to another branch, a new one, or another file. The model is then bound to where it went.

  1. Choose File › Git › Save to Git as….
  2. In New branch, type la-gram/shop-payments, and choose Commit.

Pull from Git

File › Git › Pull from Git reads the bound file's latest version on its current branch and combines it with your local model. It makes no commit and creates no branch. Public repositories need no token; private repositories use the same read access as Open from Git….

  1. Open a model with Open from Git…, or save it with Save to Git….
  2. After a colleague commits a change, choose File › Git › Pull from Git.
  3. Review the updated model. If the Conflicts tab opens, choose which changes to keep.
  4. Choose Save to Git when you want to commit your local changes and conflict choices.

For example, if you rename “Web shop” while a colleague moves “Payments”, pulling keeps your name and their position. If you both change the same name, the Conflicts tab offers both choices. Resolve the outstanding conflicts before pulling again.

Pull keeps edits made while it is reading the repository. Saving to a local file does not make those edits count as saved to Git. A pull with changes is one undoable step; undo restores the earlier model as local changes against the pulled version. A pull with no model changes adds no undo step. The result message says whether changes arrived, local changes remain, or conflicts need attention.

Pull is available outside shared rooms. Finish a pending Update from main… with Save to Git first. A missing file, branch or previous version, a file containing a different model, invalid RDF, or blank nodes that cannot be matched between versions stops the pull and leaves the model unchanged. Switching or reloading the model while a pull is reading discards that pull's result.

Save to Git commits when you choose. History › Read again refreshes the commit list; it does not pull changes into the model.

Git status and regular checks

The Git tab appears for a bound model. It shows the repository, branch and file; local and incoming changes; the last successful check; the next scheduled check; and why checks are paused or failed. The tab's badge says New when incoming changes are available, Paused when regular checks are paused, or ! when a failure or conflict needs attention. Background updates leave your current tab and editing focus in place.

The tab's buttons:

Button Does
Save to Git commits the model to its file, asking for a message — the same as File › Git › Save to Git. Available while no other Git action is running
Check for remote changes checks now, as File › Git › Check for remote changes does
Pull from Git incorporates the newer model, as File › Git › Pull from Git does
Git settings… opens File › Settings… › Git storage
Pause auto-commit, Resume auto-commit shown while auto-commit is on: stops automatic commits, and starts them again
  1. Change the model, then open the Git tab: Local changes says Not saved to Git.
  2. Choose Save to Git, type a commit message and choose OK: the change is committed, and Local changes says None.

Choose File › Git › Check for remote changes, or the button in the Git tab, to check now. It observes the repository without pulling, even when automatic pull is enabled. A commit affecting another file, or only the model's serialization order, does not count as an incoming model change.

In File › Settings… › Git storage, under Synchronization:

Setting Values and default Effect
Check for remote changes Off, Every 1 minute, Every 2 minutes, Every 5 minutes, Every 10 minutes checks the open model's bound file; for example, Every 2 minutes checks again two minutes after the previous check finishes
Pull automatically when unchanged locally Off, On with regular checks enabled, incorporates incoming changes only when the local model still equals its Git baseline immediately before applying
  1. Open a model from Git, then open the Git tab.
  2. Choose Git settings…, set Check for remote changes to Every 2 minutes, and choose Apply.
  3. After a colleague commits, New appears on the Git tab at the next check. Choose Pull from Git when ready to incorporate it.
  4. To incorporate changes automatically while your model is unchanged locally, also tick Pull automatically when unchanged locally and choose Apply.

Regular checks start after the chosen interval. They run while the app is visible and online, outside a shared room. One tab or window at the same app address, in the same browser profile, checks a destination; another takes over when that owner hides, closes or stops checking. A waiting tab can still check or pull manually. Returning after a pause performs at most one overdue check. Network and rate-limit failures delay retries, respecting any retry time the host supplies. Closing the app stops checks.

Automatic pull is one undoable model change and never creates a Git commit. Local edits, including edits saved only to a local file or made during the check, prevent it. The Git tab reports incoming changes and leaves them for manual pull instead.

Checks that need attention

Background checks never ask for a token. A private repository without usable credentials pauses checking; choose Check for remote changes to give read access and retry. Unresolved conflicts and pending branch merges pause synchronization until finished. If the browser cannot coordinate tabs, regular checks pause with an explanation; manual Check and Pull remain available.

Optional auto-commit

Auto-commit saves changed model content to the bound repository, branch and file using your token and the Commit message template. It is Off until you enable it for that exact model and destination in File › Settings… › Git storage. Destination shows the model IRI, host, repository, branch and file. A different model, branch or file starts Off; returning to a previously enabled model and destination restores its setting.

Setting Values and default Effect
Auto-commit Off, After idle, At interval saves only changed content; for example, After idle waits until you stop editing
Idle time 1 minute, 2 minutes, 5 minutes, 10 minutes after the last local model edit; pulls and status updates do not restart it
Commit interval 5 minutes, 10 minutes, 15 minutes, 30 minutes checks again after the previous attempt completes; unchanged content creates no commit
  1. Open or save a model from Git. Use Save to Git once to supply a token with write access if the current session has none.
  2. Open Git settings… in the Git tab. Check Destination, choose After idle and an Idle time, then Apply. For example, 2 minutes saves two minutes after your last model edit.
  3. Continue editing. The Git tab shows Next commit check and Last committed. Use Pause auto-commit to stop future automatic writes and Resume auto-commit when ready.

Before each write, la-gram reads the remote version and merges disjoint changes into your model as an undoable change. It does this even with regular checks Off. It commits only content different from the incorporated Git base, so undoing back to that base creates no commit. Saving to a local file does not hide changes from Git. Edits made while a commit is being sent remain unsaved local changes after it completes. Manual Save to Git and its message prompt remain available.

Conflicts and pauses

Conflicts appear in the Conflicts tab without switching your active tab. Auto-commit stays paused after you choose the values: use Save to Git or Resume auto-commit to publish when ready. Changing the timing alone does not resume it. A pending branch merge, blank nodes, missing credentials or denied access also need attention. Pauses are remembered across reloads.

Auto-commit runs only while this app is visible and online, outside shared rooms. One tab/window at the same app address and browser profile owns automatic work for a destination. Other clients still use Git's file-version check; a changing remote is reread and merged up to three times. The app never creates a branch or review request automatically and never chooses overwrite. Network and rate-limit failures before a write delay retries. Closing the app stops scheduling; an already-sent write can still complete. Exact timing depends on the browser and connection.

Interrupted writes

Before sending, la-gram records the destination and a fingerprint of the submitted model in local storage. If the response is lost, it checks the remote file and, if needed, one page of file history to confirm the write. It pauses instead of blindly retrying. Resume auto-commit checks a pending write again; once confirmed, resume once more when ready. After reopening the editor, Pull from Git or Open from Git… may be needed to incorporate that commit first. Save to Git can also resolve the situation manually. No model text or token is kept in this pending-write record. Without usable local storage or browser tab coordination, use manual saving.

When the file changed

A save never overwrites a change it has not seen. When the file moved on in the repository since it was opened, last saved or pulled, the save asks, models/shop.ttl changed in the repository:

Choice Does
Merge with the newer version (first) combines your changes with the newer version, by element, and commits the result to the same branch; what changed on both sides goes to the Conflicts tab first
Save to a new branch commits this model to a new branch, started from the version you opened or last saved, named <prefix><model>-<date>-<time>, la-gram/acme-online-shop-20261108-1915 say
Overwrite it on main replaces the newer version with this model; what changed there stays in the branch's history, not in its latest file
Open the newer version replaces the model here with the repository's; your changes are lost
  1. Save to Git, after someone else has committed to the same file.
  2. Choose Merge with the newer version. With nothing changed on both sides, the merged model is committed at once.

Before a save

A save asks first in two cases:

Dialog When Asked
Conflicts not chosen conflicts in the Conflicts tab are still open: the model holds the version before either change every save, until they are chosen
Blank nodes the model has triples with a blank node, which an imported file may bring and la-gram never makes: a merge cannot match them, and keeps both copies once a session for each model

Save anyway saves.

  1. Merge a newer version that leaves a conflict, and save to Git without choosing it.
  2. Conflicts not chosen asks: choose Cancel, then choose in the Conflicts tab.

Conflicts tab

A merge (Pull from Git, Merge with the newer version, or Update from main…) combines both sides by element. What both changed the same thing in, a name, a node's position, a route, a relationship's ends, a concept deleted on one side and changed on the other, is listed in a Conflicts tab beside History, each with the two versions and a button for each:

Conflict Choices
a value, a relationship's ends, a type, a node's bounds, a line's route Keep mine · Take theirs
placed twice on a diagram, both kept until one is chosen Keep only mine · Keep only theirs
deleted on one side, changed on the other Keep it · Delete it

"Mine" is the model here; "theirs" the version merged with. Until a choice is made, the model holds the version before either change, a deleted concept kept. A choice can be changed, and each is one undoable step. A click on what a conflict is about shows it.

  1. Open the Conflicts tab.
  2. For the name of "Web shop", choose Take theirs.
  3. Save to Git: the merge is committed.

Update from main

File › Git › Update from main… merges another branch, the default first in the list (Update la-gram/shop from…), into the bound one, so that its merge request merges cleanly. Conflicts go to the Conflicts tab first.

Host The merged model is
GitHub committed to the bound branch as a merge commit
GitLab committed to a new branch started from the other one, as GitLab's API cannot record a merge: Commit to a new branch asks its name. Open that branch's merge request, and close the old one
  1. Choose File › Git › Update from main….
  2. Pick main.
  3. On GitHub, the merge is committed to the bound branch.

Moving the model to another namespace

Model settings can move the model to another namespace, which renames every IRI in it. For a model saved to Git it asks first, in Model saved to Git, naming the repository, branch and file; Move moves it, Cancel leaves the model as it was.

  • The model stays bound to its file. Save to Git commits the move there, as any other change. Commit it right after, on the branch the others start from, so that the move is a commit of its own, as the IRI Minting guide asks.
  • What changed elsewhere follows the move. A merge into the moved model, Merge with the newer version, Pull from Git or Update from main…, first moves the other version into the new namespace, each IRI keeping the rest of its name: a colleague's rename, made in the old namespace, lands on the moved element. la-gram-git merge does the same with git merge, whichever side moved.
  • The open model follows a move made elsewhere. When the other version has the model in another namespace, Pull from Git, Merge with the newer version and Update from main… move the open model there: what changed here lands under the new IRIs, each keeping the rest of its name, the canvas shows the same view under its new IRI, and the model stays bound to its file. A message says so: main has the model in another namespace, as https://example.org/acme/store/model: the open model moved there too, and stays bound to its file. Undo does not take the move back.
  • Automatic checks and auto-commit do not move the open model. A scheduled pull, with Pull automatically when unchanged locally on, and an automatic commit stop at a version that has the model in another namespace, and the Git tab says that Pull from Git follows it.
  • Another model in the file — the same namespace, or an IRI not named {namespace}model — is not merged into the open one: open it from Git.
  • Moved on both sides, to two namespaces: not merged. Move one to the other's namespace first.
  • Auto-commit is off for the moved model, moved here or followed, until it is turned on again (Optional auto-commit).
  • In the History tab, Open this version of a commit that has the model in another namespace asks a second time, Open and move, and then moves the open model there with it.

To move the model:

  1. Open the model from Git, and click its name in the toolbar.
  2. In Namespace, type https://example.org/acme/store/, and choose Apply.
  3. Model saved to Git names the file: choose Move.
  4. Choose File › Git › Save to Git: the move is committed to the same file.

To follow a colleague who moved it on main:

  1. Choose File › Git › Pull from Git: the model is in the colleague's namespace, with your changes, and the message names the new IRI.
  2. Choose File › Git › Save to Git to commit your changes to the moved file.

Merge requests

File › Git › Open merge request… proposes the bound branch for merging into the default one: a pull request on GitHub, a merge request on GitLab. It asks for a Title, the branch's last commit's message, and a Description in Markdown, the branch's changes by element, each with who made it and when (— changed by Ada Lovelace, 2026-11-20 16:40 UTC); Open opens it. A request already open from the branch is named, with its link, not opened again. A model on the default branch is told to commit to a branch of its own first, with Save to Git as….

  1. Choose File › Git › Open merge request….
  2. Read the description, and choose Open. The message gives its link.

Access tokens

A public repository opens and pulls without a token. Otherwise la-gram asks, in Access token for github.com, for a Token, and sends it to that host only, never into the model or a file.

Host Token
GitHub a fine-grained personal access token with Contents: Read and write on the repository (Read-only to open, pull and read its history), and Pull requests: Read and write to open pull requests (how to make it)
GitLab a personal, project or group access token with the api scope (read_api to open, pull and read its history) (how to make it)

A token is kept for each host. By default it is kept in memory for the session: a reload, or closing the tab, forgets it. Ticked, the dialog's Remember box keeps it:

Build Remember says Kept Ticked at first
web Remember on this browser (stored unencrypted; anyone using this browser profile can read it) in this browser's localStorage (la-gram:git-tokens), unencrypted no
desktop Remember on this computer (encrypted with the system keychain) encrypted with the system keychain yes

Offer to remember a new token, ticked changes which, and Forget the token for … in Settings forgets one. A deployment that says rememberTokens: never keeps every token for the session only, and there is no Remember.

A token remembered in the browser is not encrypted

"For the session" means in memory: a reload forgets the token. Remember in the web app writes it to localStorage as it is, where anything running in this browser profile on la-gram's site can read it. On a shared or managed computer, leave it unticked, give a token the least it needs, with an expiry, and forget it in File › Settings… › Git storage when done. The desktop app encrypts it with the system keychain instead.

  1. Open a private repository with Open from Git….
  2. In Token, paste a token with the scopes above, leave Remember unticked, and choose Use this token.

When something fails

What the host answered, as la-gram says it, and what to do:

la-gram says Because Do
The token was refused: it is wrong, or it has expired. the host does not know the token: mistyped, revoked or past its date. la-gram forgets it make a new token, and give it when la-gram asks
The token may not do this with the repository acme/architecture. On GitHub it needs Contents: read and write on the repository; on GitLab, the api scope. the token lacks the permission or scope; on GitHub, an organization may not have approved it yet; on GitLab, a project token's role may not push to that branch give the token what GitHub or GitLab needs, or have the organization approve it
The repository acme/architecture was not found — or the token cannot see it. a mistyped address, a private repository opened without a token, or a token not given that repository check the address; on GitHub, add the repository to the token's Repository access
git.example.com could not be reached, or it refused a request from this page (a cross-origin refusal). The desktop app is not restricted that way. the host is down or off the network, or, from the web app, it does not answer requests from another site see A self-hosted GitHub or GitLab
The host’s rate limit is reached. Try again later. too many requests in a while — likelier without a token wait, or give a token: hosts allow more to one
models/shop.ttl changed in the repository since it was opened or last saved. someone committed to the file see When the file changed
  1. Open a private repository without a token, and choose Cancel when la-gram asks for one: nothing opens.
  2. Open it again, and give a token with Contents: Read-only on it: the repository's model files are listed.

History

For a model bound to a file, the History tab lists the file's commits beside the checkpoints, newest first, with their authors and links, and shows what each changed by element. Open this version makes the model the file at a commit, still bound to its branch; Read again reads the commits again. See History and checkpoints.

  1. Open a model from Git, and the History tab.
  2. Choose Read again after someone else committed: their commit is listed first.