【问题标题】:curl: (35) Server aborted the SSL handshake in Mac OS X El Capitan (10.11.4)curl: (35) 服务器在 Mac OS X El Capitan (10.11.4) 中中止 SSL 握手
【发布时间】:2017-01-03 21:49:29
【问题描述】:

当我运行这个命令时:

git clone <bitbucket repo>.git

我得到错误:

致命:无法访问 '.git/':服务器 中止 SSL 握手

当我运行命令时:

git --version

输出:

git 版本 2.9.2

我无法理解问题出在我的 Mac 中安装的 git 上还是我的 Mac 上。

【问题讨论】:

    标签: git macos ssl bitbucket


    【解决方案1】:

    知道了。 这是因为我在代理后面,并且没有在命令行中将其设置为环境变量(以为是在系统偏好设置 -> 网络 -> 局域网中设置的)

    如果您在代理后面,请在 ~/.bashrc 文件中添加这两行:

    export http_proxy=http://<proxy_url>:<proxy_port>/
    export https_proxy=https://<proxy_url>:<proxy_port>/
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-15
      • 1970-01-01
      • 1970-01-01
      • 2014-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多