Tell git about the key

This commit is contained in:
Firepup Sixfifty 2024-05-07 18:43:45 -05:00
parent 8e9efb8dbe
commit 9b9aee07d6
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -8,3 +8,6 @@ echo '$ gpg --list-secret-keys --keyid-format=long'
gpg --list-secret-keys --keyid-format=long
key_id=$(gpg --list-secret-keys --keyid-format=long|grep sec|sed -E 's_.+ .+/([^ ]+) .+_\1_g')
echo "[INFO] Detected key: $key_id"
echo '[INFO] Having git recognize this as the default signing key for this user...'
echo "$ git config --global user.signingkey $key_id"
git config --global user.signingkey $key_id