Skip to content

Gitea ​

Gitea is a self-hosted code hosting service similar to GitHub. Your code stays on your own computer, and you can manage repositories together with other people.

SystemsLinuxWindowsmacOS
EditionsInternationalChina
Sincev0.2.0

Each system runs one instance. Gitea runs as an account of its own, so you skip choosing an account.

Supported systems ​

SystemArchitectureFirst Neutrino Hub versiongit
Linuxamd64, arm640.2.0Installed together with Gitea
Windowsamd640.5.0Included with Gitea
macOSApple silicon, Intel0.5.0The install adds Apple's Command Line Tools automatically

Install ​

  1. Open the panel in a browser, sign in, and select the system to install on in the lower half of the sidebar.

  2. In the Module configuration area, select + Add module. In the dialog, select the Gitea card, then select Close after the card is highlighted.

    The module list with the Add module button boxed in red
    1Select + Add module
    The Add module dialog with the Gitea card boxed in red
    2Select Gitea
    The Gitea card highlighted, with the Close button boxed in red
    3Select Close
  3. After the dialog closes, select the Gitea row in the list on the left, and its tab appears on the right. Select Install.

    The module list with the Gitea row boxed in red
    1Select Gitea
    The Gitea tab showing not installed, with the Install button boxed in red
    2Select Install
  4. The tab lists every step, and on Linux it also installs the git system package. When the tab shows installed, select Start.

    The tab showing installing, with every step listed
    1Installing
    The tab showing installed, with the Start button boxed in red
    2Select Start
  5. The tab shows running. Select Configure, and the settings open under it. In the Administrator area, fill in username and password, which you use later to sign in to Gitea. You can leave email (optional) empty.

    The tab showing running, with the Configure button boxed in red
    1Select Configure
    The Administrator area with the username field boxed in red
    2Enter a username and password
  6. Select Create administrator. Administrator shows exists beside it, with this username listed under it. The install is complete.

    The username and password filled in, with the Create administrator button boxed in red
    1Select Create administrator
    The Administrator area showing exists
    2Exists

Use ​

Before you start, add your phone or computer to the hub, as Join the hub describes.

  1. Open the client, go to the Apps page, and find the Gitea row. The row has two addresses under it: a web address, and an SSH address for git. Select Use, then Open.

    The client's Apps page with the Use button boxed in red
    1Select Use
    The Gitea row with the Open button boxed in red
    2Select Open
  2. The browser opens Gitea's home page. Select Sign In in the top-right corner, enter the username and password you set, and select Sign In.

    Gitea's home page with the Sign In button boxed in red
    1Select Sign In
    The sign-in page with the Sign In button boxed in red
    2Fill in, then select Sign In
  3. After you sign in, your dashboard opens. To create a repository, select + in the top-right corner. Enter a name in Repository Name, leave the other fields unchanged, then scroll down and select Create Repository.

    The dashboard after signing in
    1Select +
    The new repository page with the Repository Name field boxed in red
    2Enter the repository name
  4. The repository is created, and its page shows the clone address and the commands to run.

    The new repository's page showing the clone address

After you select Use in the client, git can use the clone address on the page. To clone with the SSH address, add your SSH key in Gitea's web page first.

A repository home page with two files, and the README under them

Share ​

Gitea can generate a link with App share.

  1. In the panel sidebar, select Services, find the Gitea row, and select Share.

    The Services page with the Share button of the Gitea row boxed in red
  2. In the dialog, enter a Name that helps you identify the share; the other person does not see it. Expires defaults to 7 days, and you can choose another option before you select Generate link. Select Copy right away, send the link, then select Done. After the dialog closes, the panel no longer shows the link.

    The share dialog with the Name field boxed in red
    1Enter a name
    The completed share dialog with the Generate link button boxed in red
    2Select Generate link
    The share dialog showing the link and a QR code, with the link row boxed in red
    3Select Copy

The link opens Gitea's own home page, where the other person signs in on their own. They can sign in after you create an account for them in Gitea.

Gitea's home page open in a visitor's browser

Risks and limits ​

With Open registration on, anyone who has the share link can create an account.

You manage accounts and repositories in Gitea's own web page, and the panel manages only the first administrator.

Settings ​

Apart from the administrator, the following settings can stay at their defaults:

SettingWherePurpose
Open registrationAccessWhether visitors can create their own accounts; off by default
Port, Root URLAccessUsually left unchanged
Apply accessAccessSaves the settings in the previous rows, and Gitea restarts
Reset passwordAdministratorResets the administrator's password
Update, Install another version…Under the tab's stateChange the version; the steps follow this table

To change the version, first read the version line on the tab, for example Installed 28.3.0. When the publisher has a newer version, the line also shows · newest and that version. Then follow these steps:

  1. Select Install another version…. The dialog lists newer versions first, and tested marks the tested version. A new version migrates the data when it starts, so Gitea only upgrades: versions older than the installed one are grey and cannot be selected. Select the newer version you want.

    The version row with the Install another version button boxed in red
    1Select Install another version
    The version list, with the versions older than the installed one in grey
    2Older versions cannot be selected
  2. When a newer version exists, the Update button beside it switches straight to the newest version. The tab lists the Switch to version steps and returns to running when they finish. On the newest version, Update is grey.

Uninstall ​

On the Gitea tab, select Uninstall. The dialog states that the repositories, Gitea's accounts and the database stay in its data folder. Select Uninstall to confirm.

The Gitea tab with the Uninstall button boxed in red
1Select Uninstall
The uninstall dialog with the Uninstall button boxed in red
2Confirm

After you install Gitea again, the original repositories and accounts work as before.

If the install fails, see Troubleshooting.