我刚刚安装了Windows10、Visual Studio Community 2015和Git for Windows。我还安装了最新的Bitbucket和GitHub扩展。
在Visual Studio中,我克隆了我的Bitbucket.com托管的存储库,并成功地执行了以下操作:
$ git --version
git version 2.19.2.windows.1
$ git pull
Already up to date.但是,当我尝试从另一个存储库获取数据时,我得到了这个错误:
$ git pull git://github.com/aegif/CmisSync.git
fatal: unable to lookup github.com (port 9418) (Either the application has not called WSAStartup, or WSAStartup failed. )不过,我可以ping通github.com。
如何调查和解决此问题?
发布于 2018-11-27 04:16:38
对于那些不能编辑URL的人来说,将git降级到以前的版本似乎是可行的。
这似乎是git版本2.19.2.windows.1的一个问题。
发布于 2018-11-26 17:28:15
一种技术含量较低的解决方法是在URL中用https://替换git://。
然后,该命令将顺利执行。
警告:
Git instead.
发布于 2019-02-22 15:43:12
这是Git for Windows早期版本中的一个已知错误。
升级/安装版本高于2.20.0.
您可以使用命令$ git --version检查当前安装的版本
https://stackoverflow.com/questions/53477460
复制相似问题