Skip to content

Instantly share code, notes, and snippets.

@stormwild
Created December 24, 2013 15:15
Show Gist options
  • Save stormwild/8114622 to your computer and use it in GitHub Desktop.
Save stormwild/8114622 to your computer and use it in GitHub Desktop.
Create an orphan or empty branch.

http://24ways.org/2013/get-started-with-github-pages/

git checkout --orphan gh-pages

An orphaned branch is an empty branch that’s disconnected from the branch it was created off, and it starts with no commits, making it a special standalone branch. checkout switches us from the branch we were on to that branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment