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.
1011GitRoot need all your commits to be signed, to configure your local git client:
1213```sh
14git config commit.gpgSign true15git config gpg.format ssh
16git config user.signingkey $SSH_PUB_KEY17git config gpg.ssh.allowedSignersFile "$(pwd)/.gitroot/allowed_signers"18git config core.sshCommand "ssh -i ${SSH_PRIV_KEY} -o IdentitiesOnly=yes"19```2021Additionally you can add your information in the allowed_signers (to be compatible with git):
2223```sh
24echo"$EMAIL$(cat $SSH_PUB_KEY)" >> "$(pwd)/.gitroot/allowed_signers"25```2627And don't forget to add yourself in the users.yml of GitRoot. See [Add a user](./add_user.md) for mode details.
2829Don't forget to configure user.name and user.email like any other git repository:
3031```sh
32git config user.email "$EMAIL"33git config user.name "$NAME"34```