编辑: 这个人成功地做到了完全一样的事情,我不知道为什么它对我不起作用。
我刚刚安装了git
并使用公钥/私钥设置了权限/SSH验证(Centos 6.5)。 我可以无问题地使用以下命令进行拉取/推送:
git clone git@code.organization.com:projects/boilerplate-template
用户名是git
,代码位于/home/git/projects
,使用git --init --shared boilerplate-template
创建了一个仓库。
我如何在另一个项目中使用Bower引用boilerplate-template
?
我尝试使用下面的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)…
很遗憾它失败了,因为 :project
不是端口,而是路径。我也尝试过用ssh://
代替git://
:
ENOTFOUND: 包 ssh://code.organization.com:projects/boilerplate-template 未找到。