I'm using Jekyll with GitHub Pages (specifically, a project page). I've created 2 branches:
mastergh-pages
The documentation explains that the website content is stored in the gh-pages branch and that content will be rendered by Jekyll. The output will be available at a URL such as username.github.io/project-name.
If I run jekyll new mysite in my local master branch, that creates _config.yml, _posts, _sites etc in that branch. At this point if I run jekyll serve I can see a basic site at localhost:4000 (which is great).
My question:
Considering what I currently have in my master branch currently seems to be working, what is the purpose of the gh-pages branch? What exactly should be contained in a) master branch and b) gh-pages branch?
Thanks in advance.
_sitefolder (so GitHub will only display your files as a web server would). That's it. - Virtua Creative_sitefolder that Jekyll built locally to you. Now, when using GitHub as your host, you can do either, as GitHub builds it automatically for you. About user/organization and project websites in GitHub, the thing is: you can have as many websites as you wish. One for user/organization and multiple for projects. I recommend you to read this article for a better overview. - Virtua Creative_sitefolder. And if you don't needmasterbranch, go on and delete it! And if you don't need more than one website, go for user website, not project. I say that because if you create a project site you will have this domain name:username.github.io/project. If a visitor triesusername.github.iohe'll find a 404 error. Hope to have helped! - Virtua Creative