seansummers
7/22/2014 - 9:03 PM

Initialize gh-pages branch

Initialize gh-pages branch

# create gh-pages branch
git checkout --orphan gh-pages
git rm -rf .
touch README.md
git add README.md
git commit -m 'initial gh-pages commit'
git push origin gh-pages

# add gh-pages as submodule
git checkout master
git submodule add -b gh-pages git@github.com:skratchdot/MYPROJECT.git _site
git commit -m "added gh-pages as submodule"
git push origin master
git submodule init