Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在git pull请求上查找https(端口9418)(提供了nodename或servname,或未知)_Git_Macos_Github_Gitlab - Fatal编程技术网

无法在git pull请求上查找https(端口9418)(提供了nodename或servname,或未知)

无法在git pull请求上查找https(端口9418)(提供了nodename或servname,或未知),git,macos,github,gitlab,Git,Macos,Github,Gitlab,我正在尝试在macbook上设置远程存储库。完成常规git步骤,设置远程存储库、名称、电子邮件、登录等等。当我运行git remote-v时,我的源代码和上游代码都正常,我甚至克隆了存储库 问题是,当我尝试进行拉或推时,出现了以下错误:无法查找https(端口9418)(提供了nodename或servname,或未知) 有人知道发生了什么吗?试试这个命令: git config --global url.https://github.com/.insteadOf git://github.co

我正在尝试在macbook上设置远程存储库。完成常规git步骤,设置远程存储库、名称、电子邮件、登录等等。当我运行
git remote-v
时,我的源代码和上游代码都正常,我甚至克隆了存储库

问题是,当我尝试进行拉或推时,出现了以下错误:无法查找https(端口9418)(提供了nodename或servname,或未知)

有人知道发生了什么吗?

试试这个命令:

git config --global url.https://github.com/.insteadOf git://github.com/

没有证据表明OP在最初的问题中使用了github,也没有解释为什么这是正确的解决方案,也没有解释发生了什么。