Skip to content

Instantly share code, notes, and snippets.

@thetwopct
Last active April 11, 2024 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thetwopct/62eb5d7310437a17fe0eda9d5c7a467f to your computer and use it in GitHub Desktop.
Save thetwopct/62eb5d7310437a17fe0eda9d5c7a467f to your computer and use it in GitHub Desktop.
Git Ignore (.gitignore) for WordPress development
## Config
movefile.yml
.lando.yml
## Development
build
vendor
node_modules
package-lock.json
debug.log
## Databases
*.sql
*.sql.gz
*.sql
*.bk
## Backups & Updraft
.wpress
ai1wm-backups
backups-dup-lite/
wp-snapshots
updraft/
litespeed/
cache/
wp-content/advanced-cache.php
## WordPress specific
!wp-content/themes/*/index.php
wp-content/themes/index.php
wp-content/themes/twenty*
wp-content/mu-plugins
wp-content/plugins
wp-content/upgrade
wp-content/uploads
wp-content/cache
wp-content/languages
wp-content/wp-cloudflare-super-page-cache
## WordPress Core
index.php
license.txt
readme.html
wp-activate.php
wp-admin
wp-blog-header.php
wp-comments-post.php
wp-config-sample.php
wp-config.php
wp-cron.php
wp-includes
wp-links-opml.php
wp-load.php
wp-login.php
wp-mail.php
wp-settings.php
wp-signup.php
wp-trackback.php
xmlrpc.php
## Random
.idea
.git
.DS_Store
error_log
.well-known
.wp-cli
cgi-bin
# cPanel / Upgrades / Other
wp-content/upgrade-temp-backup/
wp-content/maintenance/
wp-content/backup/
wp-content/maintenance.php
wp-content/.htaccess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment