From 9907c09f1be7e0920bb324c8740e0ee2781d858f Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 26 Feb 2014 18:44:27 +0000 Subject: [PATCH] More robust `.gitignore` file fixes #27207. props TobiasBg, markjaquith. git-svn-id: https://develop.svn.wordpress.org/trunk@27295 602fd350-edb4-49c9-b593-d223f7449a82 --- .gitignore | 58 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index dad73b5fdb..2c0f8772c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,25 +1,43 @@ -lib-cov -*.seed -*.log -*.csv -*.dat -*.out -*.pid -*.gz - -pids -logs -results +# gitignore file for WordPress Core +# Configuration files with possibly sensitive information wp-config.php wp-tests-config.php -phpunit.xml -tests/phpunit/data/plugins/wordpress-importer -tests/phpunit/data/.trac-ticket-cache* -tests/qunit/compiled.html +.htaccess -node_modules -npm-debug.log +# Files and folders related to build/test tools +/phpunit.xml +/tests/phpunit/data/plugins/wordpress-importer +/tests/phpunit/data/.trac-ticket-cache* +/tests/qunit/compiled.html +/src/.wp-tests-version +/node_modules +/npm-debug.log +/build +/tests/phpunit/build -# The WordPress output directory. -build +# Files and folders that get created in wp-content +/src/wp-content/blogs.dir +/src/wp-content/languages +/src/wp-content/mu-plugins +/src/wp-content/plugins/* +/src/wp-content/themes/* +/src/wp-content/upgrade +/src/wp-content/uploads +/src/wp-content/advanced-cache.php +/src/wp-content/blog-deleted.php +/src/wp-content/blog-inactive.php +/src/wp-content/blog-suspended.php +/src/wp-content/db.php +/src/wp-content/db-error.php +/src/wp-content/debug.log +/src/wp-content/install.php +/src/wp-content/maintenance.php +/src/wp-content/object-cache.php +/src/wp-content/sunrise.php + +# Do not ignore "twenty*" themes +!/src/wp-content/themes/twenty* + +# Ignore other .gitignore files to allow for personal customizations +.gitignore