Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vanduc1102/0f05dcf653833b4c4eea4e5a24cc7cdc to your computer and use it in GitHub Desktop.
Save vanduc1102/0f05dcf653833b4c4eea4e5a24cc7cdc to your computer and use it in GitHub Desktop.
wordpress .ignore
# track this file .gitignore (i.e. do NOT ignore it)
!.gitignore
# ignore compiled / system files
*.com
*.class
*.dll
*.exe
*.o
*.so
.idea
.vscode
.ftpquota
.DS_Store
# ignore packaged files
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# ignore log files
*.log
# ignore everything in the "wp-content" directory, except:
# "mu-plugins" directory
# "plugins" directory
# "themes" directory
vendor/
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
wp-content/plugins/*
!wp-content/plugins/a-plugin/
!wp-content/themes/
wp-content/themes/*
!wp-content/themes/a-child/
wp-content/themes/a-child/dist/
!wp-content/themes/a/
# ignore these plugins from the core
wp-content/plugins/hello.php
wp-content/plugins/akismet/
# ignore node/grunt dependency directories
node_modules/
*.sql
wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment