GitRoot

Craft your forge // Build your project // Grow your community freely
 1<!--
 2SPDX-FileCopyrightText: 2026 Romain Maneschi <romain@gitroot.dev>
 3
 4SPDX-License-Identifier: CC-BY-SA-4.0
 5-->
 6
 7# Root Repository
 8
 9The first time you run GitRoot, it will create a `root repository`. This repository, called `root` by default, is where forge configuration live.
10
11This is a repository like any other, you can add files with git. In a `mono-repo` instance like [gitroot.dev](https://gitroot.dev), you can manage the instance from this single repo.
12
13However, it contains more internal files than standard repositories.
14
15Another slight difference is how you can access the repositories. The root repository is accessible through `ssh://yourdomain.tld/` or `ssh://yourdomain.tld/root/`. A non-root repository is accessible only via `ssh://yourdomain.tld/repo1/`. The same rules apply for web access.
16
17## ForgeConfig.yml
18
19This file is where your main config live:
20
21```yml
22################################################################################
23# /!\ A restart of GitRoot is need before change in this file take effect. /!\ #
24################################################################################
25
26sshaddr: 0.0.0.0:4545 #The ssh address to listen to with ip:port form
27httpaddr: 0.0.0.0:4546 #The http address to listen to with ip:port form
28domainname: localhost
29externalsshaddr: ssh://localhost:4545/
30externalhttpaddr: http://localhost:4546/
31rootcommitername: GitRoot
32rootrepositoryname: root
33defaultbranch: main
34nbworkerinbackground: 3
35nbmaxbranchesperprojectbeforerejectinganonymous: 10
36activesftp: false
37execconf:
38  baremetal:
39    enabled: false
40  bwrap:
41    enabled: true
42    user: nobody
43    uid: 65534
44    group: nogroup
45    gid: 65534
46    robind: []
47    bind: []
48  container:
49    enabled: false
50    bin: podman
51  ssh:
52    enabled: false
53    hosts:
54      - user: myUSer
55        address: 127.0.0.1
56        port: 22
57        publickey: ssh-ed25519 AAAAC3NzaC1...
58```
59
60## Repositories.yml
61
62This file contains all repositories of your forge. With the root repository itself.
63
64```yml
65root:
66  kind: normal
67  defaultbranch: main
68  owners: []
69  forkurl: ""
70```
71
72More about this file in [repositories file documentation](./repositories_file.md).