heroku + git子模块需要身份验证

ser*_*laz 6 git heroku gitolite

我们使用gitolite来管理我们的存储库,我们的一个heroku项目有git子模块.有没有办法获得Heroku的身份验证公钥?

谢谢,大卫

kan*_*ure 11

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

git submodule add https://username:password@github.com/username/repo.git
Run Code Online (Sandbox Code Playgroud)

  • github为此推出了一项新功能:https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth (2认同)