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.
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
Copy jekyll theme files to your repository
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"
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
Lastly, enter your username.github.io in the browser and you will see your brand new static website!