我正在尝试从Bitbucket中检出我的git存储库。我做了个结账,但这个得到了这个:
pi@raspberrypi:~/Documents$ git clone https://user@bitbucket.org/user/project.git
Cloning into 'project'...
fatal: unable to access 'https://user@bitbucket.org/user/project.git/': SSL: certificate subject name (guestlogin.mycompany.com) does not match target host name 'bitbucket.org'我在这里阅读了一些其他文章,并再次尝试禁用SSL验证:
pi@raspberrypi:~/Documents$ git -c http.sslVerify=False clone https://user@bitbucket.org/user/project.git
Cloning into 'project'...
fatal: https://user@bitbucket.org/user/project.git/info/refs not valid: is this a git repository?恐怕有些问题是我在一个公司网络的背后。我能做些什么来解决这个问题吗?
编辑:令我困惑的是,如果我将手机连接到公司wifi,启用手机上的移动热点,然后将计算机(raspberry pi)连接到移动热点,克隆就能正常工作。但是,如果我将raspberry pi直接连接到公司网络(PEAP),就会遇到SSL问题。
发布于 2017-10-23 19:24:10
这肯定是由位于您和Bitbucket之间的代理服务器造成的。https://confluence.atlassian.com/bitbucketserverkb/can-t-clone-or-pull-due-to-a-git-outbound-proxy-779171769.html上的说明特别提到Bit斗Server(自托管版本,而不是bitbucket.org),但无论您如何,代理指令都应该适用于您。如果他们不这样做,那就和你公司的人谈谈,看看你能一起想出些什么。
如果公司网络允许的话,您也可以使用SSH。不过,我强烈反对http.sslVerify=False --它不仅向您展示了确切的问题(您正在访问内部代理服务器,而不是Bitbucket),而且它还保护您免受许多中间人的攻击。
https://stackoverflow.com/questions/46896935
复制相似问题