---
title: "A Step-by-Step Guide: How to Host Jekyll 4.0 on Netlify"
description: "Check out this step-by-step guide to learn how to host a static website on Netlify built with static site generator Jekyll 4.0.0. Get started in minutes, check it out!"
source: "https://www.netlify.com/blog/2020/04/02/a-step-by-step-guide-jekyll-4.0-on-netlify/"
last_updated: "2026-07-10T16:01:38.000Z"
---
**This guide was most recently updated on Wed, Apr 2nd, 2020. Below are the package versions used:**

-   Ruby 2.6.3
-   Jekyll 4.0.0

Screenshots may be outdated.

* * *

A few years ago, we originally posted our [Jekyll 3.0 on Netlify](https://www.netlify.com/blog/2015/10/28/a-step-by-step-guide-jekyll-3.0-on-netlify/) step-by-step guide. Since then, and with the introduction of [Jekyll](https://jekyllrb.com/) 4.0, deploying a Jekyll site to Netlify–with [continuous deployment](https://docs.netlify.com/site-deploys/create-deploys/#deploy-with-git)–has never been easier.

If you already have a Jekyll 4.0 site prepared, you can jump ahead to [Connecting to Netlify](#netlifystart). Otherwise, let’s begin!

## Installing Jekyll

This guide assumes you have [Ruby](https://www.ruby-lang.org) and [RubyGems](https://rubygems.org/) installed.

Open your terminal, and enter the following command:

```
$ gem install jekyll
```

Jekyll will create a folder with all the necessary elements for your project:

```
$ jekyll new PATH/TO/project
```

Change to your new directory:

```
$ cd PATH/TO/project
```

Jekyll can act as a server so that you can preview your content:

```
$ jekyll serve
```

This will create a version of your site that you can access at [http://localhost:4000](http://localhost:4000). Congratulations! You’ve _locally_ deployed a Jekyll 4.0 site with Netlify.

## Preparing your project for GitHub

In order for Netlify to be able to continuously deploy your site, your site must be hosted in a Git repository. This guide will talk through the steps on how to create a repository for your site using [GitHub](https://github.com).

In the terminal, run the following command:

```
$ bundle init
```

Next, run this command:

```
$ bundle install
```

This will install the `jekyll` gem and create a file called `Gemfile.lock.` This file will ensure that Netlify always uses the same version of Jekyll that you used to build your site, thus avoiding any nasty surprises.

We’re now ready to push the site to GitHub.

## Creating your Git Repo

Create a new repository on GitHub. This could be performed using GitHub Desktop however, for the purposes of this guide, we will utilise the command line.

To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub.

Open Terminal (for Mac users) or the command prompt (for Windows and Linux users).

For our purposes, let’s call your new repo “jekyll”.

In the terminal, whilst in your site directory, initialize the directory as a Git repository:

```
$ git init
```

Add the files in your new local repository. This stages them for the first commit:

```
$ git add .
```

Commit the files that you’ve staged in your local repository:

```
$ git commit -m 'First commit'
```

At the top of your GitHub repository’s Quick Setup page, click the clipboard icon to copy the remote repository URL.

In Terminal, add the URL for the remote repository where your local repository will be pushed.

```
git remote add origin [your_Git_repository_URL]
```

Verify your URL:

```
git remote -v
```

Now, it’s time to push the changes in your local repository to GitHub:

```
git push -u origin master
```

Now that your assets are up and running on GitHub, let’s connect them to Netlify.

## Connecting to Netlify

### Step 1: Add Your New Site

Once you log in to Netlify, you’ll be taken to [https://app.netlify.com/](https://app.netlify.com/). From here, select ‘New site from Git’:

![creating a new site from git in netlify app](/v3/img/blog/new-site-from-git-betabp.png)

### Step 2: Link to Your GitHub

Clicking “New Site” brings you to this screen:

![netlify app new site git provider connection screen](/v3/img/blog/create-a-new-site-git.png)

Whenever you push an update to GitHub (or GitLab/BitBucket), Netlify will automatically deploy your updates and changes!

Since your assets are hosted on your Git provider, you’ll need to link Netlify to that provider. Follow the steps within the UI to link your account.

### Step 3: Authorize Netlify

It’s time to allow Netlify and GitHub to talk to each other. Clicking the “Authorize Application” button will do just that. Netlify doesn’t store your GitHub access token on our servers. If you’d like to know more about the permissions Netlify requests and why we need them, you can visit [https://www.netlify.com/docs/github-permissions/](https://www.netlify.com/docs/github-permissions/).

### Step 4: Choose Your Repo

![netlify app repository connection screen](/v3/img/blog/choose_repo3.png)

Now that you’ve connected Netlify and GitHub, you can see a list of your Git repos. There’s the “jekyll” repo you just pushed to GitHub. Let’s select it.

### Step 5: Configure Your Settings

You now have the option to configure your deploy settings. For the purposes of this tutorial, the default parameters gathered by Netlify are appropriate. Click “Save”.

### Step 6: Build Your Site

![netlify app jekyll site build ci/cd configuration settings](/v3/img/blog/deploy_in_progress_3.png)

That’s almost it! Now, you can kick back and wait a couple of moments until Netlify does its thing.

### Step 7: Done

And there we have it! That’s it. Done. Your site has now been deployed to Netlify along with a Netlify subdomain. From here, you’re free to add your own custom domain and explore what else Netlify can do!

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=A Step-by-Step Guide: Jekyll 4.0 on Netlify&url=https://www.netlify.com/blog/2020/04/02/a-step-by-step-guide-jekyll-4.0-on-netlify//)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2020%2F04%2F02%2Fa-step-by-step-guide-jekyll-4.0-on-netlify%2F%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2020/04/02/a-step-by-step-guide-jekyll-4.0-on-netlify//)
-   [Bluesky](https://bsky.app/intent/compose?text=A Step-by-Step Guide: Jekyll 4.0 on Netlify+https://www.netlify.com/blog/2020/04/02/a-step-by-step-guide-jekyll-4.0-on-netlify//)

* * *

### Tags

-   [Jekyll](/blog/tags/jekyll/)
-   [Ruby](/blog/tags/ruby/)
-   [Tutorial](/blog/tags/tutorial/)

## Keep reading

![](/images/blog-fallback-thumbnail.svg)

Guides & Tutorials October 28, 2015

[

### A Step-by-Step Guide: Jekyll 3.0 on Netlify

](/blog/2015/10/28/a-step-by-step-guide-jekyll-3.0-on-netlify/)

-   ![Profile picture of Aaron Autrand](/_astro/5962c94512311ae8aa1bbfa6c10d37e5528fc8c7-80x80_ZJvRM3.webp)
    
    Aaron Autrand
    

![](/images/blog-fallback-thumbnail.svg)

Opinions & Insights May 2, 2016

[

### Top Ten Static Website Generators

](/blog/2016/05/02/top-ten-static-website-generators/)

-   ![Profile picture of Aaron Autrand](/_astro/5962c94512311ae8aa1bbfa6c10d37e5528fc8c7-80x80_ZJvRM3.webp)
    
    Aaron Autrand
    

## Recent posts

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)