Skip to content

Instantly share code, notes, and snippets.

@vieron
Forked from lloyd/update_gh-pages.sh
Created April 15, 2012 18:13
Show Gist options
  • Save vieron/2394203 to your computer and use it in GitHub Desktop.
Save vieron/2394203 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