Bash cheat sheet

GPG

gpg --full-gen-key --expert
# choose 9 then 1 then answer the following equestions
gpg --edit-key <KEYID>
passwd
# laisser vide
# puis confirmer le choix 2 fois
echo "pinentry-program /usr/bin/pinentry-tty" >> ~/.gnupg/gpg-agent.conf
gpg-connect-agent reloadagent /bye
gpg -k # liste toutes les clés
gpg -K # liste toutes NOS clés (privées)

Git

git config user.email "votre@email"
git config user.name "votre nom"
git config user.signingkey <keyid>
git config commit.gpgsign true # autosignature des commits

Revision #1
Created 1 July 2023 17:39:46 by SnowCode
Updated 1 July 2023 17:47:38 by SnowCode