Skip to content

Instantly share code, notes, and snippets.

@tunjos
Created July 24, 2015 16:46
Show Gist options
  • Save tunjos/205779800628755c87ec to your computer and use it in GitHub Desktop.
Save tunjos/205779800628755c87ec to your computer and use it in GitHub Desktop.
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