Git常见问题

fatal: unable to access 'https://gitee.com/longzhenling/vue_shop.git/': Could not resolve host: gitee.com

问题:git pull origin master 远程提交代码报错

PS D:\vue\vue_shop> git pull origin master
fatal: unable to access 'https://gitee.com/longzhenling/vue_shop.git/': Could not resolve host: gitee.com

解决方案:

1、ipconfig 查看ip地址
2、ping IP地址查看链接是否正常。

3、找到git目录下的 hosts文件。一般目录为 C:\Program Files\Git\etc。
4、添加IP github.com,重试。

上一篇:com.fasterxml.jackson.databind.exc.InvalidDefinitionException


下一篇:第一个NHibernate应用程序(一)