git分支:gh-pages [英] git branch: gh-pages

查看:87
本文介绍了git分支:gh-pages的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GitHub上有一个回购。最近我发现了GitHub的页面,我想要使用它们。

我想创建这个新的分支,然后在需要时提交 master 分支或 gh-pages 分支。



我该怎么做?我需要在我的回购库中创建另一个文件夹吗?

解决方案

您可能会发现本教程很有用:

将GitHub Pagesgh-pages分支和master分支设置为父项目文件夹的子文件夹(grandmaster )



对我来说,这种方法似乎更简单,然后每次执行 git checkout gh-pages 你想编辑你的gh页面内容的时间。让我知道你的想法^ _ ^



编辑:我更新了教程链接 - 谢谢@Cawas。旧tuotial(不推荐)是 https://gist.github.com/825950


I have a repo on GitHub. Recently I have discovered GitHub's pages and I want to use them.
I would like to create this new branch and then, when I need to, either commit on master branch or on gh-pages branch.

How can I do this? Do I have to create another folder inside my repo?

解决方案

You might find this tutorial useful:

Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

To me this approach seems simpler then doing a git checkout gh-pages each time you want to edit your gh-pages content. Let me know what you think ^_^

Edit: I updated the tutorial link - thanks @Cawas. The old tuotial (not recommended) was https://gist.github.com/825950

这篇关于git分支:gh-pages的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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