What you need
- A Linux machine with systemd and root access (
sudo): a cloud VM, a mini PC or an old computer. SORN GIT is tested on Rocky Linux 9, on amd64 and arm64. - About 50 MB of memory for SORN GIT itself, plus whatever your system needs.
- For access from anywhere: a domain name (for example
git.example.com) pointing at the server, with ports 80 and 443 open. Port 80 is only used to get the HTTPS certificate. - For your home or office network only: nothing else. See Local network only.
Install
On the server, run this, with your own domain:
$ curl -fsSL https://get.sorngit.com/install | sudo sh -s -- --domain git.example.com --agree-letsencrypt
--agree-letsencrypt: SORN GIT gets its free HTTPS certificate from Let's Encrypt. Adding this option means you accept the Let's Encrypt Subscriber Agreement. Without it, SORN GIT still runs, but without a trusted certificate on your domain.The installer:
- Downloads SORN GIT and checks its signature before anything runs.
- Creates a service account and its folders, and starts SORN GIT as a locked-down systemd service. SELinux stays on.
- Sets up Git over SSH on port 22, next to the system's own SSH.
- Gets the HTTPS certificate for your domain and renews it automatically.
- Turns on nightly backups, weekly practice restores and nightly signed updates.
Create your account
When it finishes, the installer prints your addresses and a setup code:
SORN GIT is ready.
Create your administrator account in the browser:
Open https://git.example.com/setup
Code [shown here] (valid 30 minutes)
Open the address, enter the code, choose a password and turn on two-factor sign-in with an authenticator app. That's the whole setup. If the code expires, run sudo sorngit welcome for a new one.
First push
In SORN GIT, open Settings → SSH keys and add your computer's public key. On the Repositories page, press New repository and give it a name (or import one from GitHub). Then push your project to it:
$ git remote add origin git@git.example.com:you/project.git && git push -u origin main
Prefer HTTPS? Create an access token in Settings → Access tokens and use it as the password when Git asks.
Local network only
Leave out --domain to run SORN GIT on your home or office network:
$ curl -fsSL https://get.sorngit.com/install | sudo sh
SORN GIT then uses its own certificate authority, limited to your server. The installer prints a one-line command to run once on each of your computers so they trust it. You can add a domain later.
Updates
SORN GIT checks for a new signed release once every 48 hours and installs it by itself, staying on the same major version. If the new version doesn't start, it goes back to the previous one automatically. To update now:
$ sudo sorngit update
Offline install
For a server without internet access, copy a release folder to it and point the installer at it with --base-url file:///path/to/release. The signature is still checked.
Uninstall
Run the installer with --uninstall. Your repositories and backups are kept unless you also add --purge.
| Option | What it does |
|---|---|
--domain NAME | Your server's public name, for HTTPS and links. |
--agree-letsencrypt | Accept the Let's Encrypt Subscriber Agreement so a trusted certificate can be issued. |
--base-url URL | Install from another location, such as a local folder (file:///…). |
--merge-home / --keep-home | On Rocky Linux's default disk layout, give the space under /home to SORN GIT's data, or leave it as it is. |
--uninstall | Remove SORN GIT. Add --purge to delete its data too. |
Licence
SORN GIT is free and open source under the Apache License 2.0. © 2026 Amiplay Co.,Ltd. What the licence means for you.