Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created April 24, 2013 21:07
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 tmcw/5455586 to your computer and use it in GitHub Desktop.
Save tmcw/5455586 to your computer and use it in GitHub Desktop.
# switch to gh-pages
git checkout gh-pages
# delete master
git branch -d master
# delete master on github
git push origin :master
# make a new master from gh-pages
git checkout -b master
# push that new master
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment