我创建了一本名为foo
,并且想要与一起使用Berkshelf
.
我是这样写的Berksfile
:
cookbook 'foo', git: 'https://bitbucket.org/ironsand/cookbook-foo.git'
然后将食谱卖给cookbooks
目录,但失败并出现如下错误:
berks vendor cookbooks
Resolving cookbook dependencies...
Fetching 'foo' from https://bitbucket.org/ironsand/cookbook-foo.git (at master)
Username for 'https://bitbucket.org':
我如何告诉 ssh 用户名和密钥Berkshelf
?
当然,我的用户有权访问 git 存储库。
如果您想对 git 提供商使用 ssh 身份验证,则需要使用 SSH URL。尝试这样的事情:
cookbook 'foo', git: '[email protected] /cdn-cgi/l/email-protection/ironsand/cookbook-foo.git'
这将使用您的 SSH 密钥进行身份验证。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)