安装 GPG
brew install gpg
生成key
gpg --gen-key
查看key
gpg --list-keys
获取公钥
gpg --armor --export pub_key_ID
拷贝公钥至 github
从 ----- BEGIN
至 KEY BLOCK -----
配置git
git config --global user.signingkey <Pub_key_ID>
git config --global commit.gpgsign true