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# All members can write on all branches
 8
 9If you want all your registered users can write on all branches of each other add them in `.gitroot/users.yml`:
10
11```yml
12owner:
13  branches:
14    - name: main
15  users:
16    - pseudo: admin
17      ssh:
18        - ssh-ed25519 AABBC3NzaC1lZDI1NTE5AAAAIICjrWwMnCd32Z10ZMEGT8zslAivtsFh0zj1Iss3C5Kt
19allAuthorized:
20  branches:
21    - name: "*"
22  users:
23    - pseudo: user
24      ssh:
25        - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICjrWwMnCd32Z10ZMEGT8zslAivtsFh0zj1Iss3C5Kt
26    - pseudo: "user2"
27      ssh:
28        - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAMXujp1NVOs5n1t8KsgzJQnYSzhe+Ht9PpKlsdZqeDa
29    - pseudo: admin
30      ssh:
31        - ssh-ed25519 AABBC3NzaC1lZDI1NTE5AAAAIICjrWwMnCd32Z10ZMEGT8zslAivtsFh0zj1Iss3C5Kt
32```
33
34If `user2` create a `branch2` even `user` will be able to change it. But as the group `owner` have right on the `main` branch, not `user`, nor `user2` will be able to push to it. Only `admin` keep the right to change it.