Git git 不能 push 问题

xiaoxiao · 2015年02月03日 · 最后由 xiaoxiao 回复于 2015年02月03日 · 12628 次阅读

今晚,我在我的虚拟机上想将我的项目 push 到 git 网站上,出现了不能 push 的问题。我试了一下 git clone 命令,也不能成功,我只能跟踪 git 的命令执行过程,我具体解决的办法如下:

GIT_URL_VERBOSE=1 git push -u origin master

输出的结果是

* Couldn't find host github.com in the .netrc file, using defaults
* About to connect() to github.com port 443
*   Trying 192.30.252.128... * connected
* Connected to github.com (192.30.252.128) port 443
* successfully set certificate verify locations:
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* Unknown SSL protocol error in connection to github.com:443 
* Closing connection #0
fatal: unable to access 'https://github.com/myname/platform.git/': Unknown SSL protocol error in connection to github.com:443

我 google 了一下解决方法

it config --system http.sslcainfo /etc/pki/tls/certs/ca-bundle.crt 或者git config --system http.sslverify false

但是两种方法都不管用,折腾了一晚上,把 git 重新装一个版本也不管用,没辙了,打算求助http://stackoverflow.com,但是这个网站又血慢血慢,先在这里发帖看有没有高手能解决。。。

翻墙了没?

没有翻墙,自由门太慢

@Rei ,解决了,使用了万能的重启。。。。。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号