|
35 | 35 | ``` |
36 | 36 |
|
37 | 37 | 1. Pick `RSA and RSA`, or `RSA (sign only)` (there is no elliptic curve cryptography (ECC) support at the time of writing) |
38 | | - 1. `keysize` = `4096` bits (the minimum accepted for GitHub) |
| 38 | + 1. `keysize` `4096` bits (the minimum accepted for GitHub) |
39 | 39 | 1. Select a key expiry time (personal choice) |
40 | | - 1. `Real name` = Your GitHub handle |
41 | | - 1. `Email address` = Your GitHub account email [listed on your GitHub profile](https://github.com/settings/emails) (you can use the privacy *@users.noreply.github.com* email address): `Settings` -> `Emails` -> `Keep my email addresses private`) |
| 40 | + 1. `Real name` Your GitHub handle |
| 41 | + 1. `Email address` Your GitHub account email [listed on your GitHub profile](https://github.com/settings/emails) (you can use the privacy *@users.noreply.github.com* email address): `Settings` -> `Emails` -> `Keep my email addresses private`) |
42 | 42 |
|
43 | 43 | > If you go for the private email option, consider enabling `Block command line pushes that expose my email`. |
44 | 44 |
|
|
61 | 61 | ```bash |
62 | 62 | git config --global user.email ${my_email_address} # same one used during key generation |
63 | 63 | git config --global user.name ${my_username} |
64 | | - git config --global user.signingkey = ${key_id} |
| 64 | + git config --global user.signingkey ${key_id} |
65 | 65 | git config --global commit.gpgsign true |
66 | 66 | git config --global tag.gpgsign true |
67 | 67 | ``` |
|
107 | 107 | ```bash |
108 | 108 | git config --global user.email ${my_email_address} # same one used during key generation |
109 | 109 | git config --global user.name ${my_username} |
110 | | - git config --global user.signingkey = ${key_id} |
| 110 | + git config --global user.signingkey ${key_id} |
111 | 111 | git config --global commit.gpgsign true |
112 | 112 | git config --global tag.gpgsign true |
113 | 113 | ``` |
|
131 | 131 | gpg -k # This should list the new key |
132 | 132 | git config --global user.email ${my_email_address} # same one used during key generation |
133 | 133 | git config --global user.name ${my_username} |
134 | | - git config --global user.signingkey = ${key_id} |
| 134 | + git config --global user.signingkey ${key_id} |
135 | 135 | git config --global commit.gpgsign true |
136 | 136 | git config --global tag.gpgsign true |
137 | 137 | ``` |
|
0 commit comments