-
Notifications
You must be signed in to change notification settings - Fork 1
github:pages
Evan Moran edited this page Apr 22, 2014
·
2 revisions
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)
git checkout master
git submodule add -b gh-pages [email protected]:username/project.git www
git status
git commit -m "Adding submodule to gh-pages"
git push