Skip to content
framework2 active rulesVerified 2026-09-30

Craft CMS .gitignore Template

Standard Craft CMS gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Open in Full Generator
Search for templates
Quick add:
Selected1
Craft CMS
Selected Templates (1)
.gitignore
### Craft CMS ###
# Craft 2 Storage (https://craftcms.com/support/craft-storage-gitignore)
# not necessary for Craft 3 (https://github.com/craftcms/craft/issues/26)
/craft/storage/*
!/craft/storage/rebrand
2 rules1 template6 lines
Deterministic

Raw Craft CMS .gitignore

Crawlable upstream source template
craftcms.gitignore5 lines
# Craft 2 Storage (https://craftcms.com/support/craft-storage-gitignore)
# not necessary for Craft 3 (https://github.com/craftcms/craft/issues/26)
/craft/storage/*
!/craft/storage/rebrand

Key Pattern Breakdown

Core Ignored Rules

Primary upstream ignore rules defined for this technology.

/craft/storage/*!/craft/storage/rebrand

Source & Verification

License:: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.