Link Search Menu Expand Document

Creating website with Jekyll under the GitHub gh-pages branch

GitHub provides a convenient, cheap, fast & secure static pages.

Here is how we can start to create it:

  1. From the github account https://github.com, click the [New] icon to create a new repository:

  2. Type the repo name & click [Create Repository]: (don’t initialize the README)

  3. Copy the repo location:

  4. Setup git repository from the folder that we have prepared the GH-pages files:
    $ git init
    $ git checkout -b gh-pages
    $ git status
    $ git add .
    $ git commit -S -m "Let's start building Gh pages"
    $ git remote add origin https://github.com/0marg/testpages.git
    $ git push origin gh-pages
    
  5. From the Setting, make sure that the branch use is the gh-pages: