557 B
557 B
Using Git with GPG
Choose the GPG key you want to use
List all private keys in my keyring
gpg --list-secret-keys --keyid-format LONG
Copy the GPG ID you want to use, in my case is: 1C58C6DAD3D30CCB
Generate a pubkey
gpg --armor --export 1C58C6DAD3D30CCB > gpgpubkey.txt
login on git repository
https://git.unit.macaomilano.org/user/settings/keys
Upload/paste the entire key
Tell Git which key you use
git config --global user.signingkey 1C58C6DAD3D30CCB
Sign your commits
git commit -S -m "your commit message"