# gitignore for plugin- and theme-development

**URL:** <https://forum.shopware.com/t/gitignore-for-plugin-and-theme-development/38033>\
**Category:** Programmierung\
**Created:** [7. Juli 2016 um 15:45 UTC](https://forum.shopware.com/t/gitignore-for-plugin-and-theme-development/38033 "2016-07-07T15:45:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtmDaniel](https://avatars.discourse-cdn.com/v4/letter/v/d26b3c/32.png) [@vtmDaniel](https://forum.shopware.com/u/vtmDaniel)\
**Post date:** [7. Juli 2016 um 15:45 UTC](https://forum.shopware.com/t/gitignore-for-plugin-and-theme-development/38033/1 "2016-07-07T15:45:30Z")

</div>

I just want to share this .gitignore-file which ignores everything but the Plugins/Local and the Custom-Theme:

```
 \* !/.htaccess !/.gitignore !/config.php !/\*/ !engine/ !engine/\*/ !engine/Shopware/ !engine/Shopware/\*/ !engine/Shopware/Plugins/ !engine/Shopware/Plugins/\*/ !engine/Shopware/Plugins/Local/ !engine/Shopware/Plugins/Local/\*/ !engine/Shopware/Plugins/Local/\*/\* !engine/Shopware/Plugins/Local/\*/\*/\* !themes/ !themes/\*/ !themes/Frontend/ !themes/Frontend/\*/ !themes/Frontend/YourCustomTheme/ !themes/Frontend/YourCustomTheme/\* !themes/Frontend/YourCustomTheme/\*/ !themes/Frontend/YourCustomTheme/\*/\* !themes/Frontend/YourCustomTheme/\*/\*/\* !themes/Frontend/YourCustomTheme/\*/\*/\*/\* !themes/Frontend/YourCustomTheme/\*/\*/\*/\*/\* !themes/Frontend/YourCustomTheme/\*/\*/\*/\*/\*/\* .gitkeep
```
