Skip to content
Get started

Import a Git repository

If your paper already lives in a Git repository, import it as a new Luzbase project. Luzbase reads the repository, shows you what it found, and creates the project with its branches. Importing works on every plan.

An import is a one-time copy by default. To keep the project and the repository in sync afterwards, turn on sync during the import (Pro), or link the repository later.

  • From GitHub: connect your GitHub account to pick a repository from a list. You can also paste a GitHub URL with a token instead.
  • From any other host, such as GitLab, Codeberg, Gitea, Bitbucket or a self-hosted server: you only need the repository’s HTTPS address. For a private repository, create an access token on that host. A token with read access is enough to import. Keeping in sync needs write access.
  1. Go to your projects and click New project.
  2. Under Start from, click Import from Git.
  3. Pick a repository:
    • On the GitHub tab, choose it from your list. Use Search your repositories to find it.
    • On the URL tab, enter its Repository URL, for example https://codeberg.org/owner/repo.git. For a private repository, expand Private repository? Add a token and enter an Access token (and a username if your host needs one).
  4. Click Continue. Luzbase reads the repository and shows what it found before it creates anything.
  5. Review what will be imported:
    • The project name.
    • The detected Main file. Change it if Luzbase picked the wrong one.
    • The Branches to import. The repository’s default branch is always included.
    • The files that Stays in Git only. These are kept in Git but aren’t editable in Luzbase (see Which files Luzbase can edit).
  6. To keep the project and the repository in sync, turn on Keep in sync with GitHub (or your host). This needs Pro. Leave it off for a one-time copy.
  7. Click Import project.

You can close the window while it runs. The project appears in your list when it’s ready, with Git already on.

  • The repository’s default branch becomes the project’s main. Each other branch you picked becomes a Luzbase branch with the same name.
  • Luzbase history starts at the latest commit of each branch, as one version marked Imported. The full Git history is kept, so a git clone of the project still shows every earlier commit.
  • Files Luzbase can’t edit, such as README.md, .gitignore or a CI workflow, stay in Git byte for byte. They’re listed in the editor’s Git panel under Git-only files.
  • Git LFS content isn’t brought into Luzbase.
Limit Value
Branches per import 50
Editable files 500 files and 500 MB in total
Repository size Up to your plan’s Git size limit (pricing)

A repository that’s too big is refused, never cut short: “This repository is too large to edit in Luzbase”. Empty repositories and repositories that use SHA-256 object names can’t be imported.