简体   繁体   English

将git存储库发布到另一个git存储库的子文件夹

[英]Publish a git repository to a subfolder of another git repository

On Azure it is possible connect an Azure website to a git repository. 在Azure上,可以将Azure网站连接到git存储库。 All changes committed to that git repository are deployed to the Azure web site. 提交给该git存储库的所有更改都将部署到Azure网站。 I would like to achieve the following: 我想实现以下目标:

Connect a git repository "main" to an Azure site, and have multiple other git repositories "publish" to a sub folder in the "main" git repositories, so the code will be automatically deployed to the Azure web site. 将git存储库“主”连接到Azure站点,并将多个其他git存储库“发布”到“主” git存储库中的子文件夹,因此代码将自动部署到Azure网站。

This post from Hanselman should help. Hanselman的这篇帖子应该有所帮助。 http://www.hanselman.com/blog/DeployingTWOWebsitesToWindowsAzureFromOneGitRepository.aspx http://www.hanselman.com/blog/DeployingTWOWebsitesToWindowsAzureFromOneGitRepository.aspx

The basic idea is to push your sub folder to the root of the remote git repository. 基本思想是将您的子文件夹推送到远程git存储库的根目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM