GitRoot

Craft your forge // Build your project // Grow your community freely
 1<!--
 2SPDX-FileCopyrightText: 2026 Romain Maneschi <romain@gitroot.dev>
 3
 4SPDX-License-Identifier: CC-BY-SA-4.0
 5-->
 6
 7# Repository Configuration
 8
 9This file is present in every repositories of GitRoot, even in the root repository.
10
11It contain some properties:
12
13```yml
14defaultbranch: main
15noforcepush:
16  - main
17nbmaxbranchesbeforerejectinganonymous: 10
18```
19
20If you want to force push to your `defaultbranch` of your repository you need to edit. See [force push documentation](../how-tos/force_push.md) for more details.
21
22The `nbmaxbranchesbeforerejectinganonymous` permit to set how many branches you want before rejecting anonymous users. It avoid to be spammed by unwanted fake contributions. By default, the value is the same as [the forge configuration](./root_repository.md#forgeconfigyml) `nbmaxbranchesperprojectbeforerejectinganonymous` property.