зеркало из https://github.com/github/docs.git
Consolidate instructions
This commit is contained in:
Родитель
7174f31e09
Коммит
11ad33a763
|
@ -1,9 +1,3 @@
|
|||
1. To set your SSH signing key in Git, paste the text below, substituting the contents of your clipboard for the key you'd like to use. Since the key contains spaces, you must wrap it in quotes:
|
||||
1. To set your SSH signing key in Git, paste the text below, substituting **/PATH/TO/KEY.PUB** with the path to the pubic key you'd like to use.
|
||||
```bash
|
||||
$ git config --global user.signingkey 'key::ssh-ed25519 AAAAC3(...) user@example.com'
|
||||
```
|
||||
|
||||
Alternatively, you can add the direct path to your public key if your system does not properly handle adding the content of the key directly.
|
||||
```bash
|
||||
$ git config --global user.signingkey=/path/to/.ssh/pubkey_filename.pub
|
||||
```
|
||||
$ git config --global user.signingkey=/PATH/TO/.SSH/KEY.PUB
|
Загрузка…
Ссылка в новой задаче