Skip to content

Instantly share code, notes, and snippets.

@mustardBees
Created February 19, 2015 10:25
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 mustardBees/65ad0ee15e7629e6aa84 to your computer and use it in GitHub Desktop.
Save mustardBees/65ad0ee15e7629e6aa84 to your computer and use it in GitHub Desktop.
Sample WordPress gitignore file
# OS or IDE folders/files to ignore
*~
._*
*.lock
*.DS_Store
*.swp
*.out
.cache
.project
.settings
nbproject
thumb.db
Thumbs.db
# Ignore everything in the root except the "wp-content" directory.
/*
!favicon.ico
!.gitignore
!wp-content/
# Ignore everything in the "wp-content" directory, except "mu-plugins", "plugins" and "themes"
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/
# Ignore everything in the "mu-plugins" directory, except the plugins you specify
wp-content/mu-plugins/*
!wp-content/mu-plugins/background-updates.php
!wp-content/mu-plugins/change-auto-update-email-address.php
# Ignore everything in the "plugins" directory, except the plugins you specify
wp-content/plugins/*
!wp-content/plugins/iweb-core-functionality/
# Ignore everything in the "themes" directory, except the themes you specify
wp-content/themes/*
!wp-content/themes/iweb/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment