Entry

Git: Signing commits with an SSH key

Solution

Setup repo

# Setup repo with signing
username="MyUsername"
email="MyEmail"
sshkey="~/.ssh/filename_id_ed25519.pub"
scope="local"

# Replace --$scope with global to apply globally
git config --$scope user.name $username
git config --$scope user.email $email
git config --$scope gpg.format ssh
git config --$scope user.signingKey $sshkey