Re: Changes to Git commit workflow
On 01-04-2021 06:54, Bishop Bettini wrote:
In "Step 5 of 7: Configure git to use that key ID" you set
git config --global --replace user.signingkey "${GPG_KEYID}"
I found that git falls back to sign with a key matching the user.email when commit.gpgsign is true. So because I have set user.email for my php related git repo to langemeijer@php.net setting the user.signingkey seems to be unnecessary, and it will pick the right key.
This won't work when user.email is different from the identity in user.signingkey, but that situation should be avoided.
Thread (18 messages)