Skip to content

Instantly share code, notes, and snippets.

@nopeless
Created September 25, 2025 15:15
Show Gist options
  • Select an option

  • Save nopeless/3eff3bb5a0ba4a48606be0e22a8137d7 to your computer and use it in GitHub Desktop.

Select an option

Save nopeless/3eff3bb5a0ba4a48606be0e22a8137d7 to your computer and use it in GitHub Desktop.
git config --global user.email || echo "no email found"
git config --global user.signingkey || echo "no signing key found"
echo "$(git config --global user.email) namespaces=\"git\" $(eval cat $(git config --global user.signingkey))" >> ~/.ssh/allowed_signers
git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment