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.
Before you start
Section titled “Before you start”- 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.
Import the repository
Section titled “Import the repository”- Go to your projects and click New project.
- Under Start from, click Import from Git.
- 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).
- Click Continue. Luzbase reads the repository and shows what it found before it creates anything.
- 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).
- 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.
- 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.
What you get
Section titled “What you get”- 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 cloneof the project still shows every earlier commit. - Files Luzbase can’t edit, such as
README.md,.gitignoreor 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.
Import limits
Section titled “Import limits”| 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.