From c0f7cab44b5659b39f18f6965a951ea25ca9a4b8 Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Mon, 2 Jun 2025 18:50:26 +0200 Subject: [PATCH] feat: now git is configured to use the gpg key to sign commits and tags --- runs/02-dev-tools/git | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runs/02-dev-tools/git b/runs/02-dev-tools/git index 9b6f757..b1f2e90 100755 --- a/runs/02-dev-tools/git +++ b/runs/02-dev-tools/git @@ -7,3 +7,11 @@ git config --global user.name "Daniele Pintore" git config --global init.defaultbranch main git config --global core.editor nvim git config --global push.autoSetupRemote true + +# Configure git to use my gpg key +git config --global user.signingkey A285BAE7C43E3B50 +git config --global commit.gpgsign true +git config --global tag.gpgSign true +echo -e "\e[31m❌ Manual intervation needed: please import your gpg key in order to use git\e[0m" >&2 +echo -e "\e[31mPress any key to continue\e[0m" >&2 +read -r