SourceTree配置SSH链接GitLab

1. 打开终端



2. 输入 ssh-keygen -t rsa -C "[email protected]" 输入注册gitlab的邮箱,看到如下即生成SSH key成功


文件位于如下地址


3. 复制id_rsa.pub文件内容

4. 粘贴到gitlab settings -> SSH key


5. 在SourceTree中配置与GitLab公钥对应的公钥




参考: https://blog.csdn.net/xyzchenxiaolin/article/details/51853319

猜你喜欢

转载自blog.csdn.net/weixin_39612961/article/details/80692681