Upload Jekyll Theme To Github Pages

Finally, we are at the final stage of making github pages to work with our own choice of jekyll theme. In this tutorial, we are going to

  1. Clone your github pages repository to your local computer.
  2. Copy all the files created in tutorial 2 into your local repository directory.
  3. Push all the files from your local repository directory to github pages repository.
  4. Enjoy!

Clone your github pages repository

Use the command below to clone your repository, remember to replace username to your github account. In the image below, you would see that I have the theme cloned along with my github pages repository.

git clone https://github.com/username/username.github.io

git clone

Copy jekyll theme files to your repository

Please replace username to your github account as well.

rsync -a jekyll-theme-next/* username.github.io/
cd username.github.io/

Push files to github pages

Before push, we need to configure git command first, just simply enter your email and git account username as below.

git config --global user.email "[email protected]"
git config --global user.name "username"

git config

Next we add all the files ready to be pushed, please make sure you are inside your local github pages repository folder, follow by giving it a comment.

git add --all
git commit -m "put the comments you want here"


And finally we can push it to github pages. Authentication is required, just enter your github account and password.

git push origin master

git push


Lastly, enter your username.github.io in the browser and you will see your brand new static website!
github pages

Use Github Pages To Build Your Static Website
Install Ruby With Rvm On CentOS7