如何将多个存储库的代码发布到<username> .github.io(Github Pages)</username>

时间:2015-02-27 17:48:58

标签: git github repository github-pages

我有两个存储库 Repo A Repo B ,我想将这两个存储库中的代码托管到我的github页面存储库。

其中一个选项:

  

Repo A 中的代码移动到 blunderboy.github.io 下的 Dir_Repo_A 目录中,我可以看到我的页面在blunderboy上托管。 github.io/Dir_Repo_A/index.html

并为 Repo B 做同样的事情。

但我对这种方法有一些问题:

  1. 我从社区获得的所有PR,我需要再次将代码移动到Dir_Repo_A。
  2. 所以我的原始仓库中的每次更改都需要一些手动工作才能反映在github页面中。

    我想要这样的东西。在我的原始仓库(Repo A)中应该有一个分支(例如gh-pages),然后只要有变化就可以将master分支合并到该分支中,只需将gh-pages分支中的代码推送到blunderboy.github即可。 io repo应该反映github页面上的更改。

    我认为angular/angular-phonecat repo已经这样​​做了。我不确定要采取哪些步骤。

0 个答案:

没有答案