相关疑难解决方法(0)

如何将`git:`urls转换为`http:`urls

我在http代理后面工作.我正在尝试使用他们的"repo"工具克隆Android的源代码树.

此工具坚持使用git://URL,即使http://URL也有效.结果,我无法下载源代码.

有可能强制git总是使用http吗?

编辑:我的http_proxy配置正确.例如,这有效:

git clone http://android.git.kernel.org/platform/manifest.git
Run Code Online (Sandbox Code Playgroud)

但这不会(错误=连接超时):

git clone git://android.git.kernel.org/platform/manifest.git
Run Code Online (Sandbox Code Playgroud)

所以这个答案并没有真正帮助我.

git proxy

132
推荐指数
3
解决办法
9万
查看次数

如何修理割草机ECMDERR

我在Windows 7上使用"yeoman"和"bower"但在创建应用程序时出现以下错误

yo webapp
Run Code Online (Sandbox Code Playgroud)

错误是

bower not-cached    git://github.com/jlong/sass-bootstrap.git#~3.0.0
bower resolve       git://github.com/jlong/sass-bootstrap.git#~3.0.0
bower not-cached    git://github.com/Modernizr/Modernizr.git#~2.6.2
bower resolve       git://github.com/Modernizr/Modernizr.git#~2.6.2
bower not-cached    git://github.com/jquery/jquery.git#~1.10.2
bower resolve       git://github.com/jquery/jquery.git#~1.10.2
bower ECMDERR       Failed to execute "git ls-remote --tags --heads git://github
.com/jquery/jquery.git", exit code of #128

Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=No error
Run Code Online (Sandbox Code Playgroud)

自耕农,凉亭和节点的版本

c:\yo-test>bower -v
1.2.8

c:\yo-test>yo -version
1.1.2

c:\yo-test>node -v
v0.10.15
Run Code Online (Sandbox Code Playgroud)

任何建议都非常感谢.

github windows-firewall yeoman bower

123
推荐指数
4
解决办法
7万
查看次数

Git/Bower错误:退出代码#128和连接失败

我正在使用Bower来安装几个库.为了演示目的,我正在安装bootstrap.无论包装如何,我都会收到以下错误:

C:\Scott>bower install bootstrap
bower not-cached    git://github.com/twbs/bootstrap.git#*
bower resolve       git://github.com/twbs/bootstrap.git#*
bower ECMDERR       Failed to execute "git ls-remote --tags --heads git://github
.com/twbs/bootstrap.git", exit code of #128

Additional error details:
fatal: unable to access 'https://github.com/twbs/bootstrap.git/': Failed connect
to github.com:443; No error    
Run Code Online (Sandbox Code Playgroud)

我已尝试使用以下解决方案删除第一个错误 - 我从此搜索中找到:

git config --global url."https://".insteadOf git://
Run Code Online (Sandbox Code Playgroud)

但是,这不起作用,也不会在该页面上找到任何其他解决方案.搜索第二个错误的解决方案,如果您在公司网络上/防火墙后面,似乎为代理服务器设置用户名/密码将解决问题.但是,我没有使用代理服务器,因为我在家用电脑/网络(Windows 7 x64).

谢谢!

编辑:命令窗口有错误:

在此输入图像描述

git bower

84
推荐指数
6
解决办法
9万
查看次数

VS 2015 + Bower:在防火墙后面不起作用

问题

在Visual Studio 2015中,使用bower,我的包恢复在防火墙后面失败,错误类似于:

ECMDERR无法执行"git ls-remote --tags --heads git://github.com/jzaefferer/jquery-validation.git",退出代码#-532462766

我已经更新了我的git配置http而不是git.当我从命令行运行时,命令成功:

在此输入图像描述

但Visual Studio或其中一个组件似乎是使用git而不是http.

背景和第一次尝试解决

使用Visual Studio 2015和Bower进行包管理.当它不在防火墙后面时效果很好,但是当在防火墙后面时,我无法使用该git://协议.

在SO(示例)的许多其他地方记录的解决方案是运行:

git config --global url."http://".insteadOf git://
Run Code Online (Sandbox Code Playgroud)

我这样做了,现在git config -l看起来像:

ore.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
user.name=Sean Killeen
user.email=SeanKilleen@gmail.com
url.http://.insteadof=git://
Run Code Online (Sandbox Code Playgroud)

但是尽管如此,Visual Studio/npm还是不尊重我的配置,或者使用旧的缓存版本.

第二次尝试解决

根据npm问题的这个帖子,我看到npm(可能是bower在VS中使用的)使用了git@语法.即使这不是我在输出中看到的,我想我会试一试.

我跑了:

git config --global url."https://github.com/".insteadOf git@github.com:
Run Code Online (Sandbox Code Playgroud)

然后我重新启动Visual Studio,但问题仍然存在.我读到的修复可能永远不适用.

有关如何修复的任何想法?

git firewall git-config bower visual-studio-2015

33
推荐指数
5
解决办法
1万
查看次数