【发布时间】:2017-01-03 21:49:29
【问题描述】:
当我运行这个命令时:
git clone <bitbucket repo>.git
我得到错误:
致命:无法访问 '.git/':服务器 中止 SSL 握手
当我运行命令时:
git --version
输出:
git 版本 2.9.2
我无法理解问题出在我的 Mac 中安装的 git 上还是我的 Mac 上。
【问题讨论】:
当我运行这个命令时:
git clone <bitbucket repo>.git
我得到错误:
致命:无法访问 '.git/':服务器 中止 SSL 握手
当我运行命令时:
git --version
输出:
git 版本 2.9.2
我无法理解问题出在我的 Mac 中安装的 git 上还是我的 Mac 上。
【问题讨论】:
知道了。 这是因为我在代理后面,并且没有在命令行中将其设置为环境变量(以为是在系统偏好设置 -> 网络 -> 局域网中设置的)
如果您在代理后面,请在 ~/.bashrc 文件中添加这两行:
export http_proxy=http://<proxy_url>:<proxy_port>/
export https_proxy=https://<proxy_url>:<proxy_port>/
【讨论】: