heroku + git子模块需要身份验证 [英] heroku + git submodule needs authentication

查看:132
本文介绍了heroku + git子模块需要身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用gitolite来管理我们的仓库,我们的一个heroku项目有git子模块。有没有办法让Heroku的公钥验证?



谢谢大卫 / div>

不,可能不是。相反,您可以在您的git存储库中创建子模块时使用HTTPS基本身份验证,类似于将私有宝石部署到Heroku 。看起来像这样:

  git submodule add https:// username:password@github.com/username/repo.git 


We are using gitolite to manage our repositories and one of our heroku project's have git submodules. Is there a way to get Heroku's public key for the authentication?

Thanks, David

解决方案

No, probably not. Instead, you can use HTTPS basic authentication when you create the submodule in your git repository, similar to deploying private gems to Heroku. Looks something like this:

git submodule add https://username:password@github.com/username/repo.git

这篇关于heroku + git子模块需要身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆