Skip to content

Instantly share code, notes, and snippets.

@dgg
Created October 14, 2017 19:01
Show Gist options
  • Save dgg/67930b2298e20b623c72d5ffe802ca14 to your computer and use it in GitHub Desktop.
Save dgg/67930b2298e20b623c72d5ffe802ca14 to your computer and use it in GitHub Desktop.
deploy subfolder to gh-pages
  1. checkout doc
  2. create subfolder www/
  3. generate content in www/
  4. commit content in www/
  5. git subtree split --prefix www -b gh-pages
  6. add and commit more content to www/
  7. git subtree push --prefix www origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment