- Create a new orphan branch:
git checkout --orphan gh-pages
- Clean all (untracked) files:
git reset --hard or git rm -rf .
- Create first commit:
git commit --allow-empty -m "Initializing gh-pages branch"
- Push the new branch on your repo:
git push origin gh-pages
- Follow enumerated steps to setup Github Pages
- Grab the URL in step 4