Git Signing Your Work
โWARNING
Entrance to the Brain, from here you're on your own.
CAUTION
Some files are private or not ready yet, if a link gives you a 404 that's why :)
This is a work in progress, new notes will be added daily
List of note Indexes
Here we are, in my brain (Digital Garden), most of the notes here needs editing and rewriting but we're getting there slowly. If you want to understand a bit more how all of this works you can head out to ๐ PKM.
When ready you can use the [indexes] bellow to start navigating.
๐ PROJECTS
๐ ART
๐ TECHNOLOGY
๐ SCIENCE
๐ PHILO-PSYCHO
๐ HISTORY
๐ HEALTH
๐ GAMING
๐ KNOWLEDGE
.... |\| .|||. |\/| .|\\. .|.
.\\||/|. .\|..|| .\|..|||...||.....
.| .....||.|\\\\\\ ... |\\\/. .\\. .||
.\\| .|\\|..|\\ .\\\\ .\\|. .\\\\\| |\| |\\|
|\\ |\\|.. /\\\. |\|\\ \\\\|. .|\\. .\\\\|
.\\. |\\\\\\\|.. .\\| .\\||\\/|. |\\| .|/\|
\. .\\\||/\|.... \\| |\/ |\\\ |\\\| .\\| \\| ....
|\/ |\\| |\\\\\\\| |\|.\\\ \\\\. |\\\\| |\\ \\. ||..
..|||\| .. .\\\\. |\\\\\\ .\\|....|\\\. |\\\\\\ |/. |/
\\\|.. .\\\ |\\. .\\\| \\| |||\\\. ...|\\/||. .\\\
|\| |\/. /\\\\\| .\\\\. \\. .../|. .|\\\|. |\\\| |\\
. |||\\|. ..||| .\\|. |\| \\|..../\\| |\\| .\\\\\ ..
\\| .||\|.|.. |\\\|./\ \\||\. ||... .\\\\/. |\/||
..|/||. |\\\\\|. .|/\| ||. .||\\\ .|||. |\
.\/| \\\. .|\\\|||\\\||.. .|\\\\\\\|\\\\. /\\\\||. |
.|| |\\\\| .......|\\\\\\. .\\\. ..|||.... .\\\\|.. ...
\\||....|\\\\\\\\||\\\\\\\/ |\|....|||\\\\\\\/....|\\\|
||.|\||\\| .....|\\\\..\\| .|\\\. ||........ .|\|...
. |\ /\\/\\\\\\. |\. .\\\\\\. ./\\\\/ |\\\||.
.|\.|\| .|\|... .. ./\\|..|\\| ..
.|\\| .\\\\.\\\\\\\ \||...\\\|..|\\\|.||
|\. ..||....|| ... ..||\\\. .|.
... .......
โ Git
Git Signing Your Work
- Download and install the GPG command line tools
- In a terminal run
gpg --full-generate-key
(Or use a graphical interface such as Kleopatra) - At the prompt, specify the kind of key you want, or press
Enter
to accept the default. - At the prompt, specify the key size you want, or press
Enter
to accept the default. - Enter the length of time the key should be valid. Press
Enter
to specify the default selection, indicating that the key doesn't expire. - Enter your user ID information.
- Note for GitHub : When asked to enter your email address, ensure that you enter the verified email address for your GitHub account. To keep your email address private, use your GitHub-provided
no-reply
email address.
- Note for GitHub : When asked to enter your email address, ensure that you enter the verified email address for your GitHub account. To keep your email address private, use your GitHub-provided
- Use the
gpg --list-secret-keys --keyid-format=long
command to list the long form of the GPG keys for which you have both a public and private key. A private key is required for signing commits or tags. - From the list of GPG keys, copy the long form of the GPG key ID you'd like to use.
- Paste the text below, substituting in the GPG key ID you'd like to use. In this example, the GPG key ID is
3AA5C34371567BD2
:
gpg --armor --export 3AA5C34371567BD2
- Copy your GPG key, beginning with
-----BEGIN PGP PUBLIC KEY BLOCK-----
and ending with-----END PGP PUBLIC KEY BLOCK-----
. - Add it on your GitHub account
- To set your primary GPG signing key in Git, paste the text below, substituting in the GPG primary key ID you'd like to use. In this example, the GPG key ID is
3AA5C34371567BD2
:
git config --global user.signingkey 3AA5C34371567BD2
- Optionally, to configure Git to sign all commits by default, enter the following command:
git config --global commit.gpgsign true