[user] name = xyz email = xyz@domain.com signingkey = ~/.ssh/id_algorithm.pub [commit] gpgsign = true [tag] gpgsign = true [gpg] format = ssh # restrict allowed signers # echo "$(git config --get user.email) namespaces=\"git\" $(cat ~/.ssh/id_*.pub)" >> ~/.git_allowed_signers [gpg "ssh"] allowedSignersFile = ~/git_allowed_signers