每次我尝试使用终端从 Bitbucket 克隆任何存储库时,都会出现此错误:
$ git clone https://[email protected] /cdn-cgi/l/email-protection/me/myrepo.git
Cloning into 'blog'...
fatal: unable to access 'https://[email protected] /cdn-cgi/l/email-protection/me/myrepo.git': Could not
resolve host: bitbucket.org; nodename nor servname provided, or not known
我在 GitHub 上遇到了同样的问题,通过用“git”协议替换“http”解决了这个问题,这太棒了!但当我在 Bitbucket 上尝试时,我得到了这个:
git clone git://[email protected] /cdn-cgi/l/email-protection/me/myrepo.git
Cloning into 'blog'...
fatal: Unable to look up [email protected] /cdn-cgi/l/email-protection (port 9418) (nodename nor servname
provided, or not known)
所以我删除了“me@”,使其与实际网页相同,操作就超时了。帮助?
In your ~/.gitconfig
, 有没有一个[http]
部分有一个proxy
进入其中?如果是这样,那可能就是你麻烦的根源。 (我从上面发布的帮助页面链接中提取了这个想法。)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)