.gitignore for Jekyll

6 ignore rules for Jekyll, ready to copy into your repository.

Static site generator

The complete .gitignore for Jekyll

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:30:25 UTC
# Technologies: Jekyll

### Jekyll ###
# Jekyll site output
_site/
# Sass cache directory
.sass-cache/
# Jekyll cache
.jekyll-cache/
# Jekyll metadata
.jekyll-metadata
.bundle/
vendor/

What these Jekyll rules actually ignore

Every pattern below, and why it belongs in your .gitignore.

General

Pattern What it ignores
_site/ Jekyll site output
.sass-cache/ Sass cache directory
.jekyll-cache/ Jekyll cache
.jekyll-metadata Jekyll metadata

Ignore folders generated by Bundler

Pattern What it ignores
.bundle/ Ignore folders generated by Bundler
vendor/ Ignore folders generated by Bundler

How to use this .gitignore for Jekyll

  1. Copy the Jekyll rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other Framework .gitignore templates

See every Framework template