在这里只说明我遇到的问题和解决方法,可能并不能解决你遇到的问题:
git clone git@gitlab.alpha.com:ipcam/ambarella.git
Cloning into 'ambarella'...
ssh: connect to host gitlab.alpha.com port 22: Network is unreachable
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
1、检查网络是否可以ping 通
ping xxx.xxx.xxx.xxx
2、查看/etc/network/interfaces
address 一栏和要下载的code server是否在同一网段
3、不在同一网段添加路由
sudo route add default gw xxx.xxx.xxx.xxx
本文详细介绍了当使用Git从远程仓库克隆代码时遇到“Networkisunreachable”错误的常见原因及解决步骤,包括检查网络连通性、确认IP地址是否在同一网段,以及如何通过添加路由来解决问题。
1万+

被折叠的 条评论
为什么被折叠?



