cd /path/to/repo-name
git checkout --orphan gh-pages
git rm -rf .
echo "My GitHub Page" > index.html
git add .
git commit -a -m "Add index.html"
git push origin gh-pages
Created
July 24, 2015 16:46
-
-
Save tunjos/205779800628755c87ec to your computer and use it in GitHub Desktop.
Creating a clean gh-pages branch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment