Skip to content
framework9 active rulesVerified 2026-09-30

Bitrix (PHP) .gitignore Template

Standard Bitrix (PHP) gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Preconfigured with Bitrix (PHP)
Search for templates
Quick add:
Selected1
Bitrix (PHP)
Selected Templates (1)
.gitignore
9 rules
### Bitrix (PHP) ###
# gitignore template for 1C-Bitrix, a PHP-based CMS
# website: https://www.1c-bitrix.ru
#Exclude all of core files
/bitrix/*
#But not the templates and non bitrix components
!/bitrix/templates
!/bitrix/components
/bitrix/components/bitrix
#Exclude bitrix gadgets
!/bitrix/gadgets
/bitrix/gadgets/bitrix
#User can use that directory to store some stuff, but it's not really recommended, just use /local instead of this
!/bitrix/php_interface/
#Exclude database configs
/bitrix/php_interface/dbconn.php
#Exclude default file storage directory
/upload/
25 lines•UTF-8
Deterministic

Raw Bitrix (PHP) .gitignore

Crawlable upstream source template
php-bitrix.gitignore•24 lines•UTF-8
# gitignore template for 1C-Bitrix, a PHP-based CMS
# website: https://www.1c-bitrix.ru
#Exclude all of core files
/bitrix/*
#But not the templates and non bitrix components
!/bitrix/templates
!/bitrix/components
/bitrix/components/bitrix
#Exclude bitrix gadgets
!/bitrix/gadgets
/bitrix/gadgets/bitrix
#User can use that directory to store some stuff, but it's not really recommended, just use /local instead of this
!/bitrix/php_interface/
#Exclude database configs
/bitrix/php_interface/dbconn.php
#Exclude default file storage directory
/upload/

Key Pattern Breakdown

Core Ignored Rules

Primary upstream ignore rules defined for this technology.

/bitrix/*!/bitrix/templates!/bitrix/components/bitrix/components/bitrix!/bitrix/gadgets/bitrix/gadgets/bitrix+2 more

Source & Verification

License: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.