我每天都在Windows和Linux中使用Git,而我只是试图让它在我的Mac上运行,但我遇到了一个简单的问题git clone.我使用了Git网站上的安装程序以及添加环境变量的bash脚本~/.MacOSX
我这样说是因为我不完全确定所有设置都正确,我也将ssh密钥添加到我的github帐户中.
因此,终端的全部输出
myComp:Sites me$ git clone https://github.com/me/some_project.git
Cloning into some_project...
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/me/some_project.git/info/refs
fatal: HTTP request failed
myComp:Sites me$
Run Code Online (Sandbox Code Playgroud)
以下是environment.plist的样子:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PATH</key>
<string>/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/X11/bin</string>
</dict>
</plist>
Run Code Online (Sandbox Code Playgroud)
Jus*_*liz 13
这对我有用,它可能是也可能不是最好的解决方案,但它当然是最简单的.
git config --global --add http.sslVerify false
| 归档时间: |
|
| 查看次数: |
6847 次 |
| 最近记录: |