git commit 使用 gpg 签名

安装 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

猜你喜欢

转载自blog.csdn.net/evenardo/article/details/83828153
今日推荐