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
- Clone your github pages repository to your local computer.
- Copy all the files created in tutorial 2 into your local repository directory.
- Push all the files from your local repository directory to github pages repository.
- 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.
1
git clone https://github.com/username/username.github.io
Copy jekyll theme files to your repository
Please replace username
to your github account as well.
1
2
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.
1
2
git config --global user.email "[email protected]"
git config --global user.name "username"
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.
1
2
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.
1
git push origin master
Enjoy!
Lastly, enter your username.github.io in the browser and you will see your brand new static website!
RELATED POSTS:
Use Github Pages To Build Your Static Website
Install Ruby With Rvm On CentOS7