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

Preconfigured with Craft CMS
Search for templates
Quick add:
Selected1
Craft CMS
Selected Templates (1)
.gitignore
2 rules
### 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
6 lines•UTF-8
Deterministic

Raw Craft CMS .gitignore

Crawlable upstream source template
craftcms.gitignore•5 lines•UTF-8
# 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.