Tell git about the key
This commit is contained in:
parent
8e9efb8dbe
commit
9b9aee07d6
1 changed files with 3 additions and 0 deletions
|
@ -8,3 +8,6 @@ echo '$ gpg --list-secret-keys --keyid-format=long'
|
||||||
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')
|
key_id=$(gpg --list-secret-keys --keyid-format=long|grep sec|sed -E 's_.+ .+/([^ ]+) .+_\1_g')
|
||||||
echo "[INFO] Detected key: $key_id"
|
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
|
||||||
|
|
Loading…
Reference in a new issue