注意:虽然描述的用例是关于在项目中使用子模块,但同样适用于git clone
HTTP上的存储库的常规.
我在Git控制下有一个项目.我想添加一个子模块:
git submodule add http://github.com/jscruggs/metric_fu.git vendor/plugins/metric_fu
Run Code Online (Sandbox Code Playgroud)
但我明白了
...
got 1b0313f016d98e556396c91d08127c59722762d0
got 4c42d44a9221209293e5f3eb7e662a1571b09421
got b0d6414e3ca5c2fb4b95b7712c7edbf7d2becac7
error: Unable to find abc07fcf79aebed56497e3894c6c3c06046f913a under http://github.com/jscruggs/metri...
Cannot obtain needed commit abc07fcf79aebed56497e3894c6c3c06046f913a
while processing commit ee576543b3a0820cc966cc10cc41e6ffb3415658.
fatal: Fetch failed.
Clone of 'http://github.com/jscruggs/metric_fu.git' into submodule path 'vendor/plugins/metric_fu'
Run Code Online (Sandbox Code Playgroud)
我设置了HTTP_PROXY:
c:\project> echo %HTTP_PROXY%
http://proxy.mycompany:80
Run Code Online (Sandbox Code Playgroud)
我甚至为http代理设置了全局Git:
c:\project> git config --get http.proxy
http://proxy.mycompany:80
Run Code Online (Sandbox Code Playgroud)
有没有人获得HTTP提取以始终通过代理工作?真正奇怪的是GitHub上的一些项目工作正常(awesome_nested_set
例如),但其他项目一直都失败(例如rails).
我在修改我的装备时遇到问题.我试图运行rhc设置,我也删除了我的.ssh文件夹并再次执行rhc设置,但这也没有用.
不知道发生了什么变化,但它在几个小时前工作了.
>git push -u <GEAR_NAME> master
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
>git remote add devstage3 -f ssh://<GEAR_ID>@<GEAR_NAME>-<GEAR-DOMAIN>.rhcloud.com/~/git/<GEAR_DOMAIN>.git/
Run Code Online (Sandbox Code Playgroud)
此外,我试图启动一个不同的齿轮并承诺,但我得到同样的错误:
Updating <GEAR_NAME>
The authenticity of host '<GEAR_NAME>-<GEAR-DOMAIN>.rhcloud.com (<GEAR_IP>)' can't be established.
RSA key fingerprint is <KEY_FINGERPRINT>.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '<GEAR_NAME>-<GEAR-DOMAIN>.rhcloud.com,<GEAR_IP>' (RSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not …
Run Code Online (Sandbox Code Playgroud) 鉴于以下限制,我如何使用Windows和Unix中的GitHub?
我正在尝试使用EGit插件将我的eclipse java项目与我的私有git存储库同步,但我没有成功.我已将远程原点配置为:
URI:git@github.com:username/project.git
主持人:github.com
存储库路径:username/project.git
不幸的是,当我尝试获取时,我收到此错误:
git@github.com:Maslor/wfmgr.git:ProxyHTTP:java.io.IOException:proxy error:> Forbidden git@github.com:Maslor/wfmgr.git:ProxyHTTP:java.io.IOException:proxy error:> Forbidden git@github.com:Maslor/wfmgr.git:ProxyHTTP:java.io.IOException:proxy error:> Forbidden
我正在使用代理,这是否意味着我必须配置EGit的代理设置,如果有的话?我怎样才能做到这一点?