1、安装git工具

下载地址:https://git-scm.com/downloads

2、桌面右键鼠标,选中 “Git Bash here”

3.输入cd ~/.ssh/,进入.ssh文件夹

出现 “ No such file or directory”,你可以手动的创建一个 .ssh文件夹即可

mkdir ~/.ssh

4.配置全局的name和email,这里是的你github或者bitbucket的name和email

git config --global user.name “XXX”

git config --global user.email “[email protected]

5.生成key

ssh-****** -t rsa -C “[email protected]

连续按三次回车

6.找到id_rsa.pub,并用笔记本打开,全选复制

7.在GitHub添加key
创建ssh

相关文章:

  • 2021-09-12
  • 2021-12-15
  • 2022-01-25
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2021-11-24
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-05-25
相关资源
相似解决方案