rubik rubik - 1 year ago 159
Git Question

git branch: gh-pages

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

branch or on

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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download