Skip to content

Instantly share code, notes, and snippets.

@chrisjangl
Last active August 23, 2021 16:42
Show Gist options
  • Save chrisjangl/ad533b2e9742457a3c0869521a830f71 to your computer and use it in GitHub Desktop.
Save chrisjangl/ad533b2e9742457a3c0869521a830f71 to your computer and use it in GitHub Desktop.
gitignore to track entire WP site. Excludes VS Code configs (.vscode/), my own local configs (info/), some common filetypes I find in projects I don't need to track, and some common BU/cache locations from popular plugins
.vscode/
.well-known/
info/
*/*/error_log
*.log
*.mmdb
*/*/node_modules
*.sh
*.sql
*.tar.gz
./*.txt
*.zip
.htaccess
wp-config.php
wp-content/advanced-cache.php
wp-content/backup-db/
wp-content/backups/
wp-content/cache/
wp-content/dc_bu/
wp-content/managewp
wp-content/updraft/
wp-content/uploads/*
wp-content/w3tc-config/
wp-content/wp-cache-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment