I created a simple gh-pages branch on github and in my local repo. I used the auto page generator to create the 5 files it uses: images javascripts stylesheets index.h
as an alternative approach, how about using a git subtree to serve as your gh-pages
branch?
git checkout master
git subtree push --prefix . origin gh-pages
according to the git-subtree docs on the source code:
Subtrees allow subprojects to be included within a subdirectory of the main project, optionally including the subproject's entire history.
in our case, we may be able to alias the same path (the root path; .
) as a virtual copy of the master branch (i have not tested it, though).
by the way, i found out about subtrees after encountering this gist, by cobyism.