Skip to content
Get started

Use Git with Luzbase

Every Luzbase project can have its own Git address. Turn Git on for a project and you can clone it, pull from it and push to it with any Git client. You can also import a repository as a new project, or link a project to a repository on GitHub or another Git host and keep the two in sync both ways.

You want to Where to read
Work on a project from your own computer with git clone, git pull and git push Clone and push with Git
Build the PDF in CI, for example with GitHub Actions Deploy tokens for CI
Start a project from a repository you already have Import a Git repository
Keep a project and a GitHub (or other) repository in sync Sync with GitHub or another Git host
  • Every Luzbase branch is a Git branch. The project’s main is the repository’s default branch.
  • Every saved version is a Git commit. Pushing a commit to Luzbase creates a version.
  • Git sees saved versions only. Edits that aren’t saved in a version yet aren’t part of a clone, unless Luzbase saves them for you when someone fetches (see Unsaved changes).
  • Files Luzbase can’t edit, such as .github/ or a Makefile, stay in Git exactly as they are. Luzbase calls them Git-only files. See Which files Luzbase can edit.
  • Luzbase serves Git over HTTPS only. SSH isn’t supported.

In History, versions that came from Git carry a badge:

Badge Where the version came from
via Git push Someone pushed it to Luzbase with git push.
from GitHub (or the name of your host) It was pulled in from a linked repository.
Imported It was created when the project was imported from a repository.
Auto-saved for Git Unsaved changes were saved as a version so a fetch could include them.
You want to Plan
Turn on Git for a project, clone and fetch Every plan
Import a repository as a one-time copy Every plan
Connect your GitHub account Every plan
Push with Git Pro
Keep a project in two-way sync with a repository Pro
Create deploy tokens for CI Pro

Git features follow the project owner’s plan. If the owner has Pro, editors can push to the project and use Pull and Push in the editor. If the owner is on Free, everyone can still clone and fetch, but nobody can push.

To push from your own computer you also need a Read and write access token, and creating one needs Pro on your own account.

Each plan also has a size limit for a project’s Git repository, and Pro’s limit is larger. See luzbase.com/pricing for current values.

Only the project owner can turn Git on.

  1. On the project page, open Settings, then Git.
  2. Under Git is off for this project, click Turn on Git.
  3. You see “Git is on for this project.” The Git access section now shows the project’s Clone URL, which looks like https://git.luzbase.com/<project-id>.git.

Projects you import from Git come in with Git already on.

A file in the repository is editable in Luzbase only if all of these are true:

  • It has a file type Luzbase supports. See Supported file types.
  • No part of its path starts with a dot.
  • It isn’t a latexmkrc file or another reserved name.
  • Text files are UTF-8 and up to 1 MB. Images and PDFs are up to 10 MB.
  • It isn’t a symlink, a submodule or a Git LFS file.

Everything else is a Git-only file. It’s kept byte for byte in Git, so a README, a CI workflow or a build script survives every round trip. Git-only files are listed read-only in the editor’s Git panel under Git-only files. You can’t create a new file at a Git-only file’s path. Git LFS content isn’t brought into Luzbase.

  1. On Settings → Git, under Turn off Git, click Turn off.
  2. Confirm in Turn off Git?

Git clients can no longer clone, fetch or push the project, and any linked repository stops syncing. The project and its history stay as they are. You can turn Git on again later.

These are the messages your Git client shows when Luzbase refuses a request.

Message Meaning
“Git push needs Luzbase Pro on the project owner’s account.” The project owner’s plan doesn’t include pushing.
“This token is read-only: create one with the git:write scope to push.” Create a Read and write token.
“You have read-only access to this project.” Viewers can clone but not push.
“This project is archived; unarchive it in Luzbase to push.” Unarchive the project first.
“Luzbase has newer versions of this branch: git pull first” Someone saved a version in Luzbase since your last pull. Run git pull, then push again.
“the main branch is protected: push a branch and open a pull request” Push to another branch and open a pull request in Luzbase.
“This repository is read-only (its Git storage is over the plan limit, or the plan no longer includes Git push).” Clone and fetch still work. Your files and history aren’t touched.
“This repository is still being prepared; please try again in a minute.” Git was just turned on. Wait and try again.