GitRoot

craft your forge, build your project, grow your community freely
 1<!--
 2SPDX-FileCopyrightText: 2025 Romain Maneschi <romain@gitroot.dev>
 3
 4SPDX-License-Identifier: CC-BY-SA-4.0
 5-->
 6
 7# Create a repository
 8
 9To create a repository you can simply add the lines corresponding and GitRoot will create it.
10
11Open `.gitroot/repositories.yml` in the root repository:
12
13```diff
14root:
15  defaultbranch: main
16  owners: []
17+ repo1:
18+   defaultbranch: main
19+   owners:
20+    - your_pub_ssh
21+    - ssh-ed25519 AAA...
22```
23
24By default GitRoot use `main` has [defaultBranch](../technicals/default_branch.md) but you can put every name you like.
25
26Commit your change and push `git add . && git commit -m "create repo1 repository" && git push`. When the change will be in the [defaultBranch](../technicals/default_branch.md) GitRoot will create it.