GitHub Pages - scs-cs-50/presentations GitHub Wiki
Simple, cheap hosting
Pick the source branch
% git checkout 1_basic
Switched to branch '1_basic'
Create a new branch
Create a new branch and push it to github:
% git checkout -b gh-pages
Switched to a new branch 'gh-pages'
% git push -u origin gh-pages
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/scs-cs-50/fizzbuzz.git
* [new branch] gh-pages -> gh-pages
Branch gh-pages set up to track remote branch gh-pages from origin.
Wait
Initializing github pages takes about 10 minutes.
Test
Go to your new github page(s):
http://YOUR-GITHUB-USERNAME.github.io/YOUR-GITHUB-REPO/
Bringing in Changes from other Branches
When you've made changes in another branch, you can pull them in with git merge. Assuming you're on a branch called 'fix1':
% git commit -m 'changes for fix1' ...
% git push ...
% git checkout gh-pages
% git merge fix1
...
% git push