Created
May 29, 2012 22:38
-
-
Save yurydelendik/2831211 to your computer and use it in GitHub Desktop.
Setting up the shumway gh-pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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