Create gh-pages branch with placeholder index.html
git checkout --orphan gh-pages git clean -fdx echo "My Github Page" > index.html echo "true" > .nojekyll git add . git commit -a -m "Initial commit" git push origin gh-pages
Create submodule to gh-branch called www (choose your username/project below)
www
git checkout master git submodule add -b gh-pages git@github.com:username/project.git www git status git commit -m "Adding submodule to gh-pages" git push
There was an error while loading. Please reload this page.