Github:将gh-pages镜像为主 [英] Github: Mirroring gh-pages to master
本文介绍了Github:将gh-pages镜像为主的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个在GitHub上托管的jQuery插件。它包含一个演示,我手动复制并推送到分支 gh-pages
,我想要做的就是在推送更改时使用它到 master
它会被自动推送到 gh-pages
,或者至少是镜像的设置。
我已经看到问题,但不确定它是否真的回答了我关于这些要求的问题:
- 我使用 Tower ,我不介意使用终端( Mac)对配置进行更改,只要该解决方案适用于此GUI即可。
- 我只想在某些回购站点进行镜像,而不是在我的机器上进行。 / li>
干杯
解决方案
git checkout gh-pages
git merge master
git push origin gh-pages
I'm developing a jQuery plugin that's being hosting on GitHub. It has a demo included of which I'm manually copying and pushing to the branch gh-pages
, what I'd like to do is have it so when I push a change to master
it is automatically pushed to gh-pages
, or at least a setup where they are mirrored.
I've already seen this question but not sure if it really answers my question with regard to these requirements:
- I use Tower, I don't mind using the terminal (Mac) to make changes to config, so long as the solution works with this GUI.
- I only want this 'mirroring' on certain repos, not on all of them on my machine.
Cheers
解决方案
git checkout gh-pages
git merge master
git push origin gh-pages
这篇关于Github:将gh-pages镜像为主的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文