Git Personal Setup
2023-12-31• 1 minCovers creating SSH and GPG keys, and creating a minimal Git configuration for personal use.
Create SSH key:
When prompted, insert the passphrase.
Add the private key to the agent to avoid continuously typing the passphrase:
When prompted, insert the passphrase.
Create GPG key:
Select the default kind (RSA and RSA), length (3072), and expiration (0).
Insert comment Git SCM.
Follow the prompts.
Get the GPG key ID:
Configure Git:
Extract GPG keys for backup:
If on git commit you get
error: gpg failed to sign the data
fatal: failed to write commit object
then set