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# Manually init git client
 8
 9Running unknow sh is risky. Please be sure to review the script before run it. In case you prefer to do it manually this are the steps.
10
11GitRoot need all your commits to be signed, to configure your local git client:
12
13```sh
14git config commit.gpgSign true
15git config gpg.format ssh
16git config user.signingkey $SSH_PUB_KEY
17git config gpg.ssh.allowedSignersFile "$(pwd)/.gitroot/allowed_signers"
18git config core.sshCommand "ssh -i ${SSH_PRIV_KEY} -o IdentitiesOnly=yes"
19```
20
21Additionally you can add your information in the allowed_signers (to be compatible with git):
22
23```sh
24echo "$EMAIL $(cat $SSH_PUB_KEY)" >> "$(pwd)/.gitroot/allowed_signers"
25```
26
27And don't forget to add yourself in the users.yml of GitRoot. See [Add a user](./add_user.md) for mode details.
28
29Don't forget to configure user.name and user.email like any other git repository:
30
31```sh
32git config user.email "$EMAIL"
33git config user.name "$NAME"
34```