文档
实践
-  生成新 GPG 密钥 gpg --full-generate-key
-  查看本地GPG列表 gpg --list-keys 
-  关联GPG公钥与Github账户 gpg --armor --export {key_id} 
  
-  GPG私钥对Git commit进行签名 git config --local user.signingkey {key_id} # git config --global user.signingkey {key_id} git commit -S -sm 'test gpg' # git config --global commit.gpgsign true 代替 -S git push 
-  在仓库查看签名 git log --show-signature
注意事项
- commit email 和 GPG邮箱要一致
- 变基之后,GPG失效
  
 