While helping a friend with a git problem today, I had to introduce a
branch that needed to be totally separate from the master
branch.
The contents of this bra
The currently selected answer is correct, I would just add that coincidentally...
This is actually exactly how github.com lets users create Github Pages for their repos, thru an orphaned branch called gh-pages
.
The pretty steps are given and explained here:
https://help.github.com/articles/creating-project-pages-manually
Basically the git commands to set this up are as follows:
git checkout --orphan gh-pages
(create a parentless branch called gh-pages on your repo)git rm -rf .
(removes any files from branch working tree)rm '.gitignore'
(even the gitignore)Note you can also designate a /docs folder on you repo to be the source of the "Project Site" that Github uses to build the website.
Hope this helps!