虽然不知道什么原因,网上的方法 unset host:proxy之类都不管用

后来重新设置一下username和password就ok了

git config --global user.name ****

git config --global user.password ****

上面的做法还是不行

 

试试下面

现象:git报错fatal: unable to access 'https://****.com/c*****5/ecmall.git/': Could not resolve host: gitlab.***k.com

 

原因:git在拉去代码时找不到hostname,git路径中git@gitlab.yto.net.cn:new_yonmen/carrier.git中的域名不存在,需要配置host文件,或者修改域名为ip

 

 

解决办法:为了方便以后的下载,建议修改host文件,

hosts中增加

10.1.221.231 gitlab.yto.net.cn 

相关文章:

  • 2021-05-20
  • 2021-12-19
  • 2021-10-05
  • 2022-12-23
  • 2021-05-23
  • 2021-06-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-01-22
相关资源
相似解决方案