リポジトリでブランチ保護を強制している場合、必須コミット署名をセットアップできます。 詳しい情報については保護されたブランチの設定を参照してください。
When you enable required commit signing on a branch, contibutors and bots can only push commits that have been signed and verified to the branch. 詳細については、「コミット署名の検証について」を参照してください。
コミットが署名および検証されている場合は、いつでもローカルコミットをブランチにプッシュできます。 You can also merge signed and verified commits into the branch using a pull request on GitHub. However, you cannot squash and merge a pull request into the branch on GitHub unless you are the author of the pull request. You can squash and merge pull requests locally. For more information, see "Checking out pull requests locally." For more information about merge methods, see "About merge methods on GitHub."
メモ: ブランチで必須コミット署名を有効化すると、コントリビュートするのが難しくなります。 コラボレータが、未署名のコミットを、必須コミット署名が有効化されたブランチにプッシュすると、コラボレータは検証済み署名を含めるためにコミットをリベースし、書き直したコミットをブランチにフォースプッシュしなければなりません。
リポジトリの管理者は、署名・検証されていないローカルコミットをプッシュできますが、管理者にもコミット署名を義務付けることが可能です。 詳しい情報については必須コミット署名の有効化を参照してください。