git - curl : (35) Server aborted the SSL handshake in Mac OS X El Capitan (10. 11.4)

标签 git macos ssl bitbucket

当我运行这个命令时:

git clone <bitbucket repo>.git

我得到错误:

fatal: unable to access '.git/': Server aborted the SSL handshake

当我运行命令时:

git --version

输出:

git version 2.9.2

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

最佳答案

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

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

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

关于git - curl : (35) Server aborted the SSL handshake in Mac OS X El Capitan (10. 11.4),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39179561/

相关文章:

xcode - 替换 :make command with a custom script in vim

swift - 创建 plist 并将其复制到文件夹 MacOS Swift

php - php/drupal 网站中的 SSL

Git - 推送当前分支快捷方式

git - 如何在依赖于另一个尚未 merge 的 git 分支的新 git 分支上工作?

git - Android Studio 2.1.2 启用版本控制集成

git - Git 中的文件限制是多少(数量和大小)?

c++ - Qt Mac - 应用程序在关闭后无法恢复

java - 在 Jetty 9 上配置 SSL : oeji. SelectorManager :qtp1706748598-22-selector-0: java. lang.NullPointerException

android - 改造:Android 应用程序在 API21+ 设备上启动时无法通过 SSL 握手