使用 SSH 公钥签名 Git 提交

  1. git config --global gpg.format ssh
  2. git config --global user.signingkey /Users/name/.ssh/id_ecdsa.pub
  3. Github 添加公钥(选择 Signing Key
  4. git commit -S