Skip to content

Instantly share code, notes, and snippets.

@lloyd
Created May 19, 2011 17:12
Show Gist options
  • Save lloyd/981252 to your computer and use it in GitHub Desktop.
Save lloyd/981252 to your computer and use it in GitHub Desktop.
A lil script to create a gh-pages branch from a subset of the repository. EXPENSIVE
$ git branch -D gh-pages
$ git branch gh-pages
$ git filter-branch --subdirectory-filter test/ gh-pages
$ git push -f origin gh-pages:gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment