Skip to content

Instantly share code, notes, and snippets.

@tunjos tunjos/gh-pages.md
Created Jul 24, 2015

Embed
What would you like to do?
Creating a clean gh-pages branch

Creating a clean gh-pages branch

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.