You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/administration/customizing-gitea.en-us.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -282,6 +282,22 @@ Place custom files in corresponding sub-folder under `custom/options`.
282
282
283
283
To add custom .gitignore, add a file with existing [.gitignore rules](https://git-scm.com/docs/gitignore) in it to `$GITEA_CUSTOM/options/gitignore`
284
284
285
+
## Customizing git config
286
+
287
+
Starting with Gitea 1.20, you can customize the git configuration via the `git.config` section.
288
+
289
+
### Enabling signed git pushes
290
+
291
+
To enable signed git pushes, set these two options:
292
+
293
+
````
294
+
[git.config]
295
+
receive.advertisePushOptions = true
296
+
receive.certNonceSeed = <randomstring>
297
+
````
298
+
299
+
`certNonceSeed` should be set to a sufficiently random string and be kept secret.
300
+
285
301
### Labels
286
302
287
303
Starting with Gitea 1.19, you can add a file that follows the [YAML label format](https://github.com/go-gitea/gitea/blob/main/options/label/Advanced.yaml) to `$GITEA_CUSTOM/options/label`:
0 commit comments