Skip to content

Instantly share code, notes, and snippets.

@bmarshall511
Created November 2, 2020 13:43
Show Gist options
  • Save bmarshall511/c049ac49384d59147fc125bc416a8bec to your computer and use it in GitHub Desktop.
Save bmarshall511/c049ac49384d59147fc125bc416a8bec to your computer and use it in GitHub Desktop.
WordPress Development .gitignore Example
# unneccesry files
wflogs
package-lock.json
wp-content/db/
wp-content/cache/
wp-content/backups/
# WordPress #
############
wp-config-local.php
wp-content/uploads/
sitemap.xml
sitemap.xml.gz
# npm & bower
wp-content/themes/**/node_modules
wp-content/themes/**/package-lock.json
wp-content/themes/**/composer.lock
wp-content/themes/**/bower_components
wp-content/themes/**/bower.json
wp-content/themes/**/assets/manifest.json
# Packages #
############
*.7z
*.dmg
*.gz
*.bz2
*.iso
*.jar
*.rar
*.tar
*.zip
*.tgz
!wp-includes/**/*.gz
# Logs and databases #
######################
*.log
*.sql
# OS generated files #
######################
.DS_Store*
ehthumbs.db
Thumbs.db
._*
# Vim generated files #
######################
*.un~
# SASS #
##########
.sass-cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment