【yubikey】yubikey实用教程

yubikey 实用教程

GPG

Windows

Install GPG4Win

choco install gpg4win

Import GPG public key from yubikey

gpg --card-edit
fetch # Get public key from your yubikey

Config your Git

git config --global user.signingkey <key>   # 配置 Git 签名
git config commit.gpgsign true # 当前仓库签名 (strongly suggest)
# or
# git config --global commit.gpgsign true
# git config commit.gpgsign false
git config --global gpg.program "<InstallPath>/GnuPG/bin/gpg.exe"

这里墙裂推荐单独在 git 文件夹下开启 gpgsign 不然就太脏了

Reference

comments powered by Disqus