Skip to content

Instantly share code, notes, and snippets.

@yaf
Created May 27, 2015 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaf/a5e89e90346dd06eeba9 to your computer and use it in GitHub Desktop.
Save yaf/a5e89e90346dd06eeba9 to your computer and use it in GitHub Desktop.
From a source branch that generate in a _site directory a static web site to a gh-pages branch !
#!/bin/sh
git co gh-pages && git co source:_site -- . && git ci -m 'update site' && git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment