Loading tutorials
Intermediate · Mid: 14 chapters · 38 min read. States assumed prerequisites
Start readinggit log output, and set values with git config. You should also know the basic idea of a public and private key: the private key signs, and the public key checks the result. No signing setup is needed yet. Later chapters cover creating keygit config), can use a shell, and have a general idea of public and private keys. You will learn how Git hands signing work to other programs and how one setting, gpg.format, selects the program.git config, that you are comfortable in a shell, and that you know what a public and private key are. You also need GnuPG installed. Check with gpg --version.git --version. Earlier versions cannot sign with SSH keys.git config, you know the difference between a public and a private key, and you already have a signing key from the previous two chapters. Here you tell Git which key to use and which signing program to call.user.signingkey and, for SSH, gpg.format. It also assumes you know basic git commit and git log.user.signingkey and, for SSH, gpg.format set to ssh. It also assumes you know the difference between lightweight and annotated tags.gpg.format to ssh, as covered earlier. It also assumes you know how git log and git config work.commit.gpgsign, as covered earlier. It explains how Git gets access to the private key without asking for the passphrase on every commit. It also covers the usual failures and what hardware keys change.git log --show-signature, and that commit.gpgsign is set. If not, finish the chapters on configuration and signing first.user.signingkey, and sign a commit. It covers the failures that appear most often after that setup, and how to tell which layer is responsible.