生成GPG密钥
# 1 生成密钥对
# 1.1 Windows
需要使用 Gpg4win:https://gpg4win.org/index.html
笔记
- 要留意 Git 仓库绑定的邮箱地址,注意大小写
# 2 IDEA 使用 GPG 签名 commit 记录
# 2.1 配置 GPG 路径
git config --global gpg.program <path/to/gpg/from/Gpg4Win>
# git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"
# 2.2 配置
File | Settings | Version Control | Git -> Configure GPG Key
然后就得到了 Verified GPG signature 认证

# 3 参考
上次更新: 2024/11/09, 02:20:10