![]() ![]() You should also receive confirmation in the terminal: Branch 'master' set up to track remote branch 'master' from 'origin'. Refresh the repo page to see if it went through Github will give you the exact commands for how to do this when you create your repo under “…or push an existing repository from the command line” Push the local repo to the remote repo on Github: Stage all of your site files to be committed to your local repo: Initialize your repository by entering the following into your terminal window: Name it the exact name as your site folder. I am adapting the instructions from Github for this section. ![]() Go to to see your site! Create a repository on Github for your site Run the Jekyll server to check if you’re site is working, by entering the following in the same terminal window: You should see a bunch of files in your site folder. This will create a Jekyll site within your site directory. In that same terminal window, enter the following: Now you’re in your site directory and you are ready to install your jekyll site. Open a terminal window and change the directory to your new site folder by entering the following: Make sure there are no spaces in your site folder name, as this will cause some issues later. Next, create a folder for your Jekyll site within your projects folder. I call mine “Projects”, but you can name it whatever you want, as long as it’s easy to remember and type. This is where you’re going to put your first Jekyll website along with all your other projects. ![]() Create Jekyll SiteĬreate a folder (directory) in your username (root) directory in Finder for your projects. This will install all the necessary ruby gems (files) that Jekyll needs in order to run. Open a terminal window and enter the following: I’m also assuming you have git installed and you have a github account so follow these instructions, if you have not: Install and/or update Rubyĭocs are usually terrible and written for CS graduates, but Jekyll lays out precisely how to it for all operating systems: You will need to use the command line (Applications > Utilities > Terminal) and I’m using Mac OS X for the steps below. In this tutorial, we’re going to create a Jekyll site and host it with Github. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |