English
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
| System | Architecture | First Neutrino Hub version | git |
|---|---|---|---|
| Linux | amd64, arm64 | 0.2.0 | Installed together with Gitea |
| Windows | amd64 | 0.5.0 | Included with Gitea |
| macOS | Apple silicon, Intel | 0.5.0 | The install adds Apple's Command Line Tools automatically |
Install
Open the panel in a browser, sign in, and select the system to install on in the lower half of the sidebar.
In the Module configuration area, select + Add module. In the dialog, select the Gitea card, then select Close after the card is highlighted.

1Select + Add module 
2Select Gitea 
3Select Close After the dialog closes, select the Gitea row in the list on the left, and its tab appears on the right. Select Install.

1Select Gitea 
2Select Install The tab lists every step, and on Linux it also installs the git system package. When the tab shows installed, select Start.

1Installing 
2Select Start 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.

1Select Configure 
2Enter a username and password Select Create administrator. Administrator shows exists beside it, with this username listed under it. The install is complete.

1Select Create administrator 
2Exists
Use
Before you start, add your phone or computer to the hub, as Join the hub describes.
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.

1Select Use 
2Select Open 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.

1Select Sign In 
2Fill in, then select Sign In 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.

1Select + 
2Enter the repository name The repository is created, and its page shows the clone address and the commands to run.

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.

Share
Gitea can generate a link with App share.
In the panel sidebar, select Services, find the Gitea row, and select Share.

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.

1Enter a name 
2Select Generate link 
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.

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:
| Setting | Where | Purpose |
|---|---|---|
| Open registration | Access | Whether visitors can create their own accounts; off by default |
| Port, Root URL | Access | Usually left unchanged |
| Apply access | Access | Saves the settings in the previous rows, and Gitea restarts |
| Reset password | Administrator | Resets the administrator's password |
| Update, Install another version… | Under the tab's state | Change 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:
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.

1Select Install another version 
2Older versions cannot be selected 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.


After you install Gitea again, the original repositories and accounts work as before.
If the install fails, see Troubleshooting.
