Closed as not planned
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
Telling Git about your SSH key
I believe it should mention adding
gpg.ssh.allowedsignersfile=/path/to/.config/git/allowed_signers
Otherwise, git
would complain that
error: gpg.ssh.allowedSignersFile needs to be configured and exist for ssh signature verification
And in case rules
were set, in a project settings > rules > rulesets
, github will refuse push
Require signed commits
Commits pushed to matching refs must have verified signatures.
remote: - Commits must have verified signatures.
remote: Found 1 violation:
remote:
remote: bd96ff44bfa007357c164fb564b3fdd781b31322
remote:
To github.com:just/a-repo.git
! [remote rejected] main -> main (push declined due to repository rule violations)
error: failed to push some refs to 'github.com:just/a-repo.git'
Additional information
Related issue #28577