mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-07 22:18:51 +00:00
Improve the signing documentations (#108)
Reviewed-on: https://gitea.com/gitea/docs/pulls/108
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
---
|
||||
date: "2019-08-17T10:20:00+01:00"
|
||||
|
||||
slug: "signing"
|
||||
sidebar_position: 50
|
||||
|
||||
aliases:
|
||||
- /en-us/signing
|
||||
---
|
||||
@@ -88,12 +86,22 @@ repositories, `SIGNING_KEY=default` could be used to provide different
|
||||
signing keys on a per-repository basis. However, this is clearly not an
|
||||
ideal UI and therefore subject to change.
|
||||
|
||||
By adjusting Git's `config` file within Gitea's
|
||||
repositories, `SIGNING_KEY=default` could be used to provide different
|
||||
signing keys on a per-repository basis. However, this is clearly not an
|
||||
ideal UI and therefore subject to change.
|
||||
|
||||
:::warning
|
||||
**Since 1.17**, Gitea runs git in its own home directory `[git].HOME_PATH` (default to `%(APP_DATA_PATH)/home`)
|
||||
and uses its own config `{[git].HOME_PATH}/.gitconfig`.
|
||||
|
||||
If you have your own customized git config for Gitea, you should set these configs in system git config (aka `/etc/gitconfig`)
|
||||
or the Gitea internal git config `{[git].HOME_PATH}/.gitconfig`.
|
||||
|
||||
Related home files for git command (like `.gnupg`) should also be put in Gitea's git home directory `[git].HOME_PATH`.
|
||||
If you like to keep the `.gnupg` directory outside of `{[git].HOME_PATH}/`, consider setting the `$GNUPGHOME` environment variable to your preferred location.
|
||||
|
||||
If you like to keep the `.gnupg` directory outside of `{[git].HOME_PATH}/`, consider setting the `$GNUPGHOME` environment variable to your preferred location, otherwise Gitea will use the gpg keys only under `{[git].HOME_PATH}/.gnupg`.
|
||||
:::
|
||||
|
||||
### `INITIAL_COMMIT`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user