Windows 上使用 SSH 签名 Git 提交记录
前提
生成新 SSH 密钥并复制
ssh-keygen -t ed25519 -C "your_email@example.com"
clip < ~/.ssh/id_ed25519.pub
将结果添加到 GitHub 的 SSH and GPG keys 中。
将 SSH 密钥添加到 ssh-agent
确保 ssh-agent 正在运行
eval "$(ssh-agent -s)"
将 SSH 私钥添加到 ssh-agent
ssh-add ~/.ssh/id_ed25519
...
dev.tobychung.com1 min read