In any GitRoot repository you will find users right by branch in .gitroot/users.yml
1owner:
2 branches:
3 - name: main
4 users:
5 - pseudo: GitRoot
6 avatar: ""
7 emails:
8 - GitRoot@gitroot.com
9 ssh:
10 - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEnkDo30AcFQ5A0I1MgWXbJiYG26es5SHOX+lZlIUD9U
By default GitRoot has added itself in the owner
group. That means gitroot is able to touch every files in the main
branch. To add a user insert their ssh key in this files:
1owner:
2 branches:
3 - name: main
4 users:
5 - pseudo: GitRoot
6 avatar: ""
7 emails:
8 - GitRoot@gitroot.com
9 ssh:
10 - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEnkDo30AcFQ5A0I1MgWXbJiYG26es5SHOX+lZlIUD9U
11+ - pseudo: user
12+ avatar: ""
13+ emails:
14+ - user@gitroot.com
15+ ssh:
16+ - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIICjrWwMnCd32Z10ZMEGT8zslAivtsFh0zj1Iss3C5Kt
Commit your change and push git add . && git commit -m "add user" && git push
. Then next time user
will push change to the main
branch GitRoot will accept their changes.
When a user create a new branche GitRoot will automaticaly add him in this file for his branch.