File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## Telling Git about your signing key
441 . Setting up your keys
5- ```
5+ ``` bash
66mkdir -p ~ /.gnupg/private-keys-v1.d
7+ cd ~ /.gnupg/private-keys-v1.d
78gpg --generate-key
89```
910Provide:
1011 * Real name:
1112 * Email address:
12- * PassPharse
13- ```
13+ * PassPharse:
14+
15+ ``` bash
1416gpg --list-secret-keys --keyid-format=long
1517export GPG_TTY=$( tty)
1618echo " test" | gpg --clearsign
@@ -31,7 +33,7 @@ git config -l | grep gpg
3133 git config --global commit.gpgsign true
3234 git config --global tag.gpgSign true
3335
34- gpg --armor --export 3AA5C34371567BD2
36+ gpg --armor --export 3AA5C34371567BD2 | xclip -selection c
3537 #Copy your GPG key, beginning with -----BEGIN PGP PUBLIC KEY BLOCK----- and ending with -----END PGP PUBLIC KEY BLOCK-----.
3638 ```
3739 * Add the GPG key to your GitHub account.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ xclip -sel clip < ~/.ssh/id_ed25519.pub
3030```
3131
32324 . Add your New SSH
33- Use a name, (e.g. ` ed25519_machine_OSversion ` ) and add it in https://github.com/settings/keys
33+ Use a name, (e.g. ` ed25519_machine_OSversion ` ), select ` authentification key ` and add it in https://github.com/settings/keys
3434
35355 . Testing your SSH connection
3636```
You can’t perform that action at this time.
0 commit comments