Last active
December 2, 2021 12:51
-
-
Save gdecider/a8a7d7071f14dfd220bc32ac96f699ab to your computer and use it in GitHub Desktop.
Битрикс пример ОСНОВНОЙ .gitignore и .gitmodules для 1С Битрикс
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### общие исключения | |
# IDE | |
.idea/ | |
# dev backups | |
*bak20* | |
*bak-20* | |
# cache | |
.sass-cache/ | |
## если гит выше корня сайта | |
/public/upload/ | |
/public/.Trash*/ | |
/public/yml-catalogs/*.yml | |
/public/robots.txt | |
/public/sitemap*.xml | |
/public/local/vendor/ | |
/public/local/php_interface/include/env_vars.php | |
/public/pathLog.txt | |
/public/_s/ | |
## если гит в корне сайта | |
/upload/ | |
/.Trash*/ | |
/yml-catalogs/*.yml | |
/robots.txt | |
/sitemap*.xml | |
/local/vendor/ | |
/local/php_interface/include/env_vars.php | |
/pathLog.txt | |
/_s/ | |
### Битрикс | |
## если гит в корне сайта | |
# configs | |
/bitrix/php_interface/dbconn.php | |
/bitrix/.settings.php | |
/bitrix/.settings_extra.php | |
# backups | |
/bitrix/backup | |
!/bitrix/backup/index.php | |
# logs | |
/bitrix/*.log | |
/bitrix/modules/updater.log | |
/bitrix/modules/updater_partner.log | |
# cache | |
/bitrix/cache | |
/bitrix/managed_cache | |
/bitrix/stack_cache | |
/bitrix/html_pages | |
### exports | |
/bitrix/catalog_export | |
## если гит выше корня сайта | |
# configs | |
/public/bitrix/php_interface/dbconn.php | |
/public/bitrix/.settings.php | |
/public/bitrix/.settings_extra.php | |
# backups | |
/public/bitrix/backup | |
!/public/bitrix/backup/index.php | |
# logs | |
/public/bitrix/*.log | |
/public/bitrix/modules/updater.log | |
/public/bitrix/modules/updater_partner.log | |
# cache | |
/public/bitrix/cache | |
/public/bitrix/managed_cache | |
/public/bitrix/stack_cache | |
/public/bitrix/html_pages | |
### exports | |
/public/bitrix/catalog_export | |
### исключения для конкретного проекта | |
/bitrix/modules/iarga.exchange | |
!/bitrix/modules/iarga.exchange/install | |
!/bitrix/modules/iarga.exchange/lang | |
/inneradam.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[submodule "bitrix"] | |
path = bitrix | |
url = <ссылка на репозиторий подмодуля> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment