git config --global user.name "Firstname Lastname"
git config --global user.email "[email protected]"For other repos using other name/email:
git config user.name "Firstname Lastname"
git config user.email "[email protected]"gpg --full-generate-key
gpg --list-secret-keys --keyid-format LONGCopy sec rsaNNNN/{thispart} 2021-05-25 [SC] and remember it as PRIVATE_KEY.
gpg --armor --export PRIVATE_KEYCopy the public GPG key and add it to Github.
git config --global user.signingkey PRIVATE_KEYgit config --global commit.gpgsign true