| 1 | # gitignore template for 1C-Bitrix, a PHP-based CMS |
| 2 | # website: https://www.1c-bitrix.ru |
| 3 | |
| 4 | #Exclude all of core files |
| 5 | /bitrix/* |
| 6 | |
| 7 | #But not the templates and non bitrix components |
| 8 | !/bitrix/templates |
| 9 | !/bitrix/components |
| 10 | /bitrix/components/bitrix |
| 11 | |
| 12 | #Exclude bitrix gadgets |
| 13 | !/bitrix/gadgets |
| 14 | /bitrix/gadgets/bitrix |
| 15 | |
| 16 | #User can use that directory to store some stuff, but it's not really recommended, just use /local instead of this |
| 17 | !/bitrix/php_interface/ |
| 18 | |
| 19 | #Exclude database configs |
| 20 | /bitrix/php_interface/dbconn.php |
| 21 | |
| 22 | #Exclude default file storage directory |
| 23 | /upload/ |