Skip to content

Instantly share code, notes, and snippets.

@yurydelendik
Created May 29, 2012 22:38
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 yurydelendik/2831211 to your computer and use it in GitHub Desktop.
Save yurydelendik/2831211 to your computer and use it in GitHub Desktop.
Setting up the shumway gh-pages
Per http://oli.jp/2011/github-pages-workflow/
Do Setting up GitHub Pages:
$ cd /path/to/fancypants
$ git symbolic-ref HEAD refs/heads/gh-pages
$ rm .git/index
$ git clean -fdx
$ echo "Shumway home" > index.html
$ git add .
$ git commit -a -m "First pages commit"
$ git push origin gh-pages
Then publish files:
$ git checkout gh-pages // go to the gh-pages branch
$ git checkout master -- src/ examples/ // add/update some files with changes from master branch
$ git commit -m "Updatesome files from master"
$ git push // push the gh-pages branch changes to GitHub Pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment