Skip to content

Instantly share code, notes, and snippets.

@nathan-roberts
Created July 22, 2023 05:52
Show Gist options
  • Save nathan-roberts/0e63d2895c4fe2b90c0a2600412da6c6 to your computer and use it in GitHub Desktop.
Save nathan-roberts/0e63d2895c4fe2b90c0a2600412da6c6 to your computer and use it in GitHub Desktop.
WordPress Gitignore
# WP Config
wp-config.php
# ignore these plugins
wp-content/plugins/hello.php
# ignore specific themes
wp-content/themes/twenty*/
# ignore everything in the "wp-content" directory, except:
# "mu-plugins", "plugins", "themes" directory
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
# ignore log files and databases
.DS_Store
*.DS_Store
*.log
*.sql
*.sqlite
*.zip
# ignore node dependency directories
node_modules/
# Other stuff
/.htaccess
/license.txt
/readme.html
/sitemap.xml
/sitemap.xml.gz
# ignore node dependency directories
node_modules/
dev-notes.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment