windows 设置 ssh key

70 阅读1分钟
  1. cd ~/.ssh/
  2. git config --global user.name "yourname"
  3. git config --global user.email "youremail"
  4. ssh-keygen -t rsa -C "youremail"
  5. cd ~/.ssh
  6. cat id_rsa.pub 
  7. ssh-rsa开头,邮箱结尾的几行字, 粘贴复制添加到git即可