git 报错:unable to access “http://gitlab.tydic.com:7666/tx-preformance/tx……“解决方法

git 报错:unable to access “http://gitlab.tydic.com:7666/tx-preformance/tx……“解决方法

问题出现的原因可能有两个:

  1. 网络有问题才报的这个错误
  2. 如果不是网络的问题,你试下下面的方法:

git 报错:unable to access “http://gitlab.tydic.com:7666/tx-preformance/tx……“解决方法
注意写 github.com 或者 其他网址的时候,直接写一级域名,比如 github.com 而不是 [email protected]

譬如有位同学写成以下的形式:
git 报错:unable to access “http://gitlab.tydic.com:7666/tx-preformance/tx……“解决方法
最后一行的 [email protected] 应该是去掉的才对。

总结:
如果在使用git 或者其他命令从某个网址上获取数据的时候,如果一直报错unable to access “url网址”,此时可以将网址对应的IP地址写入到电脑本机的Host文件中。

查看本地电脑的host文件

C:\Windows\System32\drivers\etc文件夹下面就有hosts这个文件,此文件需要右击以记事本的格式打开。