需要克隆的 源URl:
git@xx.xx.xx.xxx:xxxx/xxx.git
----------------------配置公钥--------------------------------------
终端输入指令:ssh-keygen -t rsa -C "账户@邮箱"
多次输入密码后:打开文件夹:快捷键 common+shift+g 前往文件夹输入: ~/.ssh
![](https://img.haomeiwen.com/i1150603/6adf6ce08f3b652c.png)
![](https://img.haomeiwen.com/i1150603/d1b940bef30bba5f.png)
整个复制,到 gitlub页面右边头像 -> setting -> SSH Keys ->
![](https://img.haomeiwen.com/i1150603/51dbe4c7d15bf0ee.png)
------------------------------------------------------------------------------
参考用例:
![](https://img.haomeiwen.com/i1150603/68c48c2d68529500.png)
根据提示执行后看到:
![](https://img.haomeiwen.com/i1150603/565f6f309097d778.png)
再回到Source Tree 重新克隆即可发现链接不再转圈且可用!
网友评论