编辑:这个家伙做与成功完全相同,无法弄清楚为什么它不适合我。
我刚刚安装git
并使用公共/专用密钥(Centos 6.5)设置了权限/ SSH身份验证。我能够使用ie毫无问题地拉/推:
git clone [email protected]:projects/boilerplate-template
用户名是在其中git
放置的代码/home/git/projects
,是使用创建的存储库git --init --shared boilerplate-template
。
boilerplate-template
在另一个项目中,我如何要求Bower?
我尝试使用以下bower.json文件没有运气:
{
"name": "my/newproject",
"dependencies": {
"boilerplate-template": "git://code.organization.com:projects/boilerplate-template"
}
}
ECMDERR:无法执行“ git ls-remote --tags --heads git://code.organization.com:projects / boilerplate-template,退出代码128无法查找code.organization.com(端口项目)...
可悲的是它失败了,因为:project
不是端口而是路径。我也尝试过使用ssh://
而不是git://
:
ENOTFOUND:找不到软件包ssh://code.organization.com:projects / boilerplate-template。
好的,在这里找到了解决方案:使用Bower作为内部专用图书馆的软件包管理工具。只需删除git://
或ssh://
添加.git
后缀即可:
"[email protected]:projects/boilerplate-template.git#~1"
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句