关于Git SourceTree 访问局域网,内网项目
2021-03-10 本文已影响0人
TikBai
通过SourceTree对外网Git仓库进行Git clone是成功的,但是,当公司在本地内网部署了git仓库,通过Xcode,SourceTree,终端命令clone 一直报错,提示未找到此仓库.

经老朽探索终于找到了原因:
虽然电脑连接局域网环境, 但是还是git clone 不到仓库,是因为访问权限不够,
需将name和password一同写入url中
例:你的账号名字:LiMing 你的密码:limingpassword 仓库地址:http://neiwang/project/dev/ios.git
clone 地址则为:http://你的名字:密码@git地址
如:http://LiMing:limingpassword@neiwang/project/dev/ios.git