Create a new blog
Initialize a blog
open command line
jekyll new blog
start server
command line
cd blog
jekyll serve
open browser, enter http://localhost:4000
create github page
create a new responsitory andyfengc.github.io
settings > options > launch automatic page generator
download the github page
download a new copy
git clone https://github.com/andyfengc/andyfengc.github.io.git
copy the blog to github page
Please note that for User Pages, use the master branch in your username.github.io repository. for Project Pages, use the gh-pages branch in your project’s repository.
git checkout –orphan gh-pages
- copy the blog files to this branch
- push chanes to github
- visit http://username.github.com/