Skip to content

Instantly share code, notes, and snippets.

@iansvo
Created September 29, 2025 22:14
Show Gist options
  • Save iansvo/55d3d7d78d24964b2986be7a9bc0d61b to your computer and use it in GitHub Desktop.
Save iansvo/55d3d7d78d24964b2986be7a9bc0d61b to your computer and use it in GitHub Desktop.
Example .gitignore for WordPress projects located in wp-content
node_modules
bower_components
release
vendor
phpunit.xml
.idea
uploads
upgrade
cache
dist
build
plugins
# Add a line for your plugins you want to track with a "!" at the front
# ! plugins/my-custom-plugin
# The below line will cover any folders with a certain prefix
# ! plugins/my-prefix-*
themes
# Add a line for your themes you want to track with a "!" at the front
# ! themes/my-custom-theme
# The below line will cover any folders with a certain prefix
# ! themes/my-prefix-*
# Editors
*.esproj
*.tmproj
*.tmproject
tmtags
.*.sw[a-z]
*.un~
Session.vim
*.swp
.vscode/launch.json
tasks.json
# Mac OSX
.DS_Store
._*
.Spotlight-V100
.Trashes
# Windows
Thumbs.db
Desktop.ini
/debug.log
# Large Files
*.zip
*.gzip
*.sql
*.sqlz
# Applications
*.exe
*.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment