fix: do not track plugins and themes except if explicitly cleared on .gitignore
This commit is contained in:
+13
-4
@@ -7,14 +7,23 @@
|
|||||||
# ignora tudo dentro de wp-content
|
# ignora tudo dentro de wp-content
|
||||||
/webroot/wp-content/*
|
/webroot/wp-content/*
|
||||||
|
|
||||||
# permite o que é seu
|
# permite as pastas (mas não o conteúdo delas)
|
||||||
!/webroot/wp-content/plugins/
|
!/webroot/wp-content/plugins/
|
||||||
!/webroot/wp-content/themes/
|
!/webroot/wp-content/themes/
|
||||||
!/webroot/wp-content/mu-plugins/
|
!/webroot/wp-content/mu-plugins/
|
||||||
|
|
||||||
# permite arquivos específicos se precisar
|
/webroot/wp-content/plugins/*
|
||||||
!/webroot/wp-content/plugins/seu-plugin/
|
/webroot/wp-content/themes/*
|
||||||
!/webroot/wp-content/themes/seu-tema/
|
/webroot/wp-content/mu-plugins/*
|
||||||
|
|
||||||
|
# permite o .gitkeep para que a pasta vazia seja versionada
|
||||||
|
!/webroot/wp-content/plugins/.gitkeep
|
||||||
|
!/webroot/wp-content/themes/.gitkeep
|
||||||
|
!/webroot/wp-content/mu-plugins/.gitkeep
|
||||||
|
|
||||||
|
# se no futuro quiser versionar algo específico:
|
||||||
|
# !/webroot/wp-content/themes/seu-tema/
|
||||||
|
# !/webroot/wp-content/themes/seu-tema/**
|
||||||
|
|
||||||
# regras gerais
|
# regras gerais
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
Reference in New Issue
Block a user