Skip to content

Instantly share code, notes, and snippets.

@chrisma
Created October 26, 2014 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisma/2074bc2d6dbdbbdea138 to your computer and use it in GitHub Desktop.
Save chrisma/2074bc2d6dbdbbdea138 to your computer and use it in GitHub Desktop.
Replace master branch with gh-pages
git branch gh-pages
git checkout gh-pages
git branch -D master
git push origin gh-pages
# Set gh-pages as default branch in admin interface
git push origin :master # delete master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment