配置github与windows的ssh连接
git config --global user.name "Git账号"
git config --global user.email "Git邮箱"
ssh-keygen -t rsa -b 2048 -C "your_email@example.com"(三次回车)
查看公钥位置
cat C:\Users\Temp/.ssh/id_rsa.pub(复制)
进入https://github.com/
1.点击右上角头像选择选择settings
2.左侧点击ssh and gpg keys
3.点击new ssh key,粘贴,起个名字windows-ssh

浙公网安备 33010602011771号