我每天都在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) 请注意,这是我一直关注的原始文章:http:
//www.markdotto.com/2011/11/02/how-to-deploy-sites-via-github/
为您提供一些背景信息:我们在组织帐户下设置了私人仓库.我们有三个开发人员(包括我自己),他们拥有我们自己的GitHub帐户,并拥有私人仓库的管理员权限.
在处理项目时,我们克隆了repo,然后创建了一个'dev'分支.我们每个人都在我们自己的开发分支工作,并将更改推送到GitHub上的'dev'分支.
我们希望将这个dev分支放到我们的远程服务器上,这样我们就可以在将它合并到我们的主分支(应该是干净的/总是可部署的)之前测试组合代码的工作原理.
从这里我们按照上面的文章步骤通过SSH连接到我们的服务器,转到我们网站托管的相关目录并运行以下命令...
git clone git@github.com:ORGANISATION/REPO.git dev
我们遇到的第一个问题是我们的服务器返回了消息......
Cloning into dev...
ssh: connect to host github.com port 22: Connection refused
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
...我希望它在哪里要求我们输入密码?
所以我们尝试了HTTP网址......
git clone https://USER@github.com/ORGANISATION/REPO.git dev
...当你克隆时,你会发现HTTP网址现在使用我自己的USERNAME.我输入我的密码然后显示,Cloning into dev...但它显示以下错误...
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://Integralist@github.com/StormCreative/MoneyRepublic.com.git/info/refs
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
......我不明白这个错误.
那么我们如何将这个私人仓库克隆到我们的服务器上呢?
任何帮助赞赏!
亲切的问候,马克
我正在尝试诊断此错误:
Getting distribution for 'zc.buildout<2dev'.
Got zc.buildout 1.7.1.
Generated script '/opt/mytardis/releases/a549cd05272afe8f16c2fe5efe8158490acbde82/bin/buildout'.
Download error on http://pypi.python.org/simple/buildout-versions/: [Errno 104] Connection reset by peer -- Some packages may not be found!
Couldn't find index page for 'buildout-versions' (maybe misspelled?)
Download error on http://pypi.python.org/simple/: [Errno 104] Connection reset by peer -- Some packages may not be found!
Getting distribution for 'buildout-versions'.
STDERR: /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'src_root'
warnings.warn(msg)
While:
Installing.
Loading extensions.
Getting distribution for 'buildout-versions'.
Error: Couldn't find a distribution for 'buildout-versions'. …Run Code Online (Sandbox Code Playgroud) 我确实推送了原始主机,然后出现一个错误:
$ git push origin master
致命: 找不到https://github.com/myusername/my-first-project-test.git/info/refs:您是否在服务器上运行git update-server-info?
我做了:
$ git更新服务器信息
但这完全没有帮助。