首先确保git已经安装好,之后鼠标右键进入gitbash 输入命令 ssh-keygen -t rsa -C "your_email@example.com" 确认 输入密码 确认密码 添加私钥 ssh-add 私钥路径/.ssh/id_rsa