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.创建ssh key找到id_rsa.pub,并用笔记本打开,全选复制

7.在GitHub添加key

创建ssh key


相关文章:

  • 2022-12-23
  • 2021-09-09
  • 2021-11-30
  • 2021-08-16
  • 2021-07-06
  • 2021-10-01
  • 2021-11-11
猜你喜欢
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-06-02
  • 2021-09-11
  • 2021-04-22
相关资源
相似解决方案