Created
December 10, 2012 02:15
-
-
Save mhkeller/4248002 to your computer and use it in GitHub Desktop.
Creating gh-pages from master branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd repo | |
$ git checkout --orphan gh-pages | |
# Creates our branch, without any parents (it's an orphan!) | |
# Switched to a new branch 'gh-pages' | |
git rm -rf . | |
# Remove all files from the old working tree | |
# rm '.gitignore' | |
$ git merge master | |
$ git push origin gh-pages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment