SourceTree上配置SSH,获取GitLab代码(图文教程)

1、打开Souce Tree--> 点击命令行模式

  

2、输入$ ssh-keygen -t rsa -b 2048 -C "your_email@163.com"

3、在目录C:\Users\axia\.ssh下会生成两个文件,将公钥文件id_rsa.pub中的内容拷贝到剪贴板。

4、在GitLab Server上登录 --> User Settings --> SSH Keys -->将剪贴板内容粘贴到Key中。

 5、打开Source Tree --> 工具--> 选项-->选择id_rsa(私钥)--> 选择OpenSSH-->确定

6、打开Source Tree--> 文件-->克隆/新建-->下载GitLab上的代码。

 Source TreeSSHgit cloneGitLab

原文地址:https://www.cnblogs.com/xiaxianfei/p/15769416.html