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 LONG
Copy sec rsaNNNN/{thispart} 2021-05-25 [SC]
and remember it as PRIVATE_KEY
.
gpg --armor --export PRIVATE_KEY
Copy the public GPG key and add it to Github.
git config --global user.signingkey PRIVATE_KEY
git config --global commit.gpgsign true