Skip to content

Instantly share code, notes, and snippets.

@mariovalney
Created April 8, 2018 14:40
Show Gist options
  • Save mariovalney/da4390c940c512f2dede26cc0ced3c8d to your computer and use it in GitHub Desktop.
Save mariovalney/da4390c940c512f2dede26cc0ced3c8d to your computer and use it in GitHub Desktop.
Gitignore para WordPress
#------------------------------#
# Gitignore to WordPress #
#------------------------------#
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
.htaccess
# wordpress specific
wp-config.php
wp-content/debug.log
wp-content/languages/
wp-content/ai1wm-backups/
wp-content/uploads/
wp-content/blogs.dir/
wp-content/upgrade/*
wp-content/backup-db/*
wp-content/advanced-cache.php
wp-content/wp-cache-config.php
wp-content/cache/*
wp-content/cache/supercache/*
# wp core (as of 3.4.1)
/db-config.php
/index.php
/license.txt
/readme.html
/wp-activate.php
/wp-app.php
/wp-atom.php
/wp-blog-header.php
/wp-comments-post.php
/wp-commentsrss2.php
/wp-config-sample.php
/wp-cron.php
/wp-feed.php
/wp-links-opml.php
/wp-load.php
/wp-login.php
/wp-mail.php
/wp-rdf.php
/wp-rss.php
/wp-rss2.php
/wp-pass.php
/wp-register.php
/wp-settings.php
/wp-signup.php
/wp-trackback.php
/xmlrpc.php
/wp-admin
/wp-includes
/wp-content/index.php
/wp-content/themes/twentyten
/wp-content/themes/index.php
/wp-content/plugins/index.php
#--------------------------#
!/wp-content/themes
/wp-content/themes/*
!/wp-content/themes/seu-tema
!/wp-content/themes/seu-tema/*
!/wp-content/plugins
/wp-content/plugins/*
!/wp-content/plugins/seu-plugin
!/wp-content/plugins/seu-plugin/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment