Skip to content
framework67 active rulesVerified 2026-09-30

Strapi .gitignore Template

Standard Strapi 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 Strapi
Search for templates
Quick add:
Selected1
Strapi
Selected Templates (1)
.gitignore
67 rules
### Strapi ###
############################
# OS X
############################
.DS_Store
.AppleDouble
.LSOverride
Icon
.Spotlight-V100
.Trashes
._*
############################
# Linux
############################
*~
############################
# Windows
############################
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msm
*.msp
############################
# Packages
############################
*.7z
*.csv
*.dat
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.com
*.class
*.dll
*.exe
*.o
*.seed
*.so
*.swo
*.swp
*.swn
*.swm
*.out
*.pid
############################
# Logs and databases
############################
.tmp
*.log
*.sql
*.sqlite
############################
# Misc.
############################
*#
.idea
nbproject
.vscode/
############################
# Node.js
############################
lib-cov
lcov.info
pids
logs
results
build
node_modules
.node_history
package-lock.json
**/package-lock.json
!docs/package-lock.json
*.heapsnapshot
############################
# Tests
############################
testApp
coverage
cypress/screenshots
cypress/videos
############################
# Documentation
############################
dist
############################
# Builds
############################
packages/strapi-generate-new/files/public/
############################
# Example app
############################
.dev
# *.cache
############################
# Visual Studio Code
############################
front-workspace.code-workspace
129 lines•UTF-8
Deterministic

Raw Strapi .gitignore

Crawlable upstream source template
strapi.gitignore•136 lines•UTF-8
############################
# OS X
############################
.DS_Store
.AppleDouble
.LSOverride
Icon
.Spotlight-V100
.Trashes
._*
############################
# Linux
############################
*~
############################
# Windows
############################
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msm
*.msp
############################
# Packages
############################
*.7z
*.csv
*.dat
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.com
*.class
*.dll
*.exe
*.o
*.seed
*.so
*.swo
*.swp
*.swn
*.swm
*.out
*.pid
############################
# Logs and databases
############################
.tmp
*.log
*.sql
*.sqlite
############################
# Misc.
############################
*#
.idea
nbproject
.vscode/
############################
# Node.js
############################
lib-cov
lcov.info
pids
logs
results
build
node_modules
.node_history
package-lock.json
**/package-lock.json
!docs/package-lock.json
*.heapsnapshot
############################
# Tests
############################
testApp
coverage
cypress/screenshots
cypress/videos
############################
# Documentation
############################
dist
############################
# Builds
############################
packages/strapi-generate-new/files/public/
############################
# Example app
############################
.dev
# *.cache
############################
# Visual Studio Code
############################
front-workspace.code-workspace

Key Pattern Breakdown

Dependencies & Package Registries

External libraries and package manager directories installed locally rather than stored in version control.

node_modulespackages/strapi-generate-new/files/public/

Build Outputs & Compiled Artifacts

Generated binary files, compilation targets, and distribution bundles that can be reliably reproduced from source.

$RECYCLE.BIN/*.jar*.class*.dll*.exe*.o+2 more

Execution Caches & Runtime Logs

Diagnostic logs, runtime metadata, test coverage reports, and incremental compiler caches that cause noisy repository diffs.

.tmp*.logcoverage

Operating System & Workspace Files

Editor-specific workspace configuration and OS filesystem metadata generated automatically by host operating systems.

.DS_StoreThumbs.dbehthumbs.dbDesktop.ini*.swp.idea+1 more

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.