Skip to content

Instantly share code, notes, and snippets.

@javifr
Created May 18, 2011 14:37
Show Gist options
  • Save javifr/978699 to your computer and use it in GitHub Desktop.
Save javifr/978699 to your computer and use it in GitHub Desktop.
gitignore template for wordpress
# basado en : https://gist.github.com/444295
# Ignora todo lo que no sea de wp ( por si hay otras cosas en root )
/*
!.gitignore
!wp-content/
!index.php
!license.txt
!readme.md
!wp-*
!xmlrpc.php
!*.sublime-workspace
# Ignoramos el wp-config y el htaccess para evitar problemas de entorno
wp-config.php
.htaccess
.git/*
# Ignore everything in the "wp-content" directory, except the "plugins"
# and "themes" directories.
wp-content/*
!wp-content/plugins/
!wp-content/themes/
# Esto en principio no lo activamos a no ser que haya algún plugin que cargue mierda por un tubo
# Ignore everything in the "plugins" directory, except the plugins you
# specify (see the commented-out examples for hints on how to do this.)
# wp-content/plugins/*
# !wp-content/plugins/my-single-file-plugin.php
# !wp-content/plugins/my-directory-plugin/
# Esto en principio no lo activamos a no ser que haya algún theme que cargue mierda por un tubo
# Ignore everything in the "themes" directory, except the themes you
# specify (see the commented-out example for a hint on how to do this.)
# wp-content/themes/*
# !wp-content/themes/my-theme/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment