Skip to content

Instantly share code, notes, and snippets.

@rhamdeew
Created January 26, 2015 19:14
Show Gist options
  • Save rhamdeew/a218aa6fd903fec4c534 to your computer and use it in GitHub Desktop.
Save rhamdeew/a218aa6fd903fec4c534 to your computer and use it in GitHub Desktop.
bitrix .gitignore sample
*.komodoproject
.buildpath
.project
.settings
sitemap*.xml
awstats.*
*.sh
#symlinks
site.ru/bitrix
# files
.DS_Store
Thumbs.db
google*.html
yandex*.html
*.sql
/.idea/
webstat
# core
/site.ru/upload/*
/site.ru/webstat
/shared/upload/*
/shared/bitrix/site_checker_*.log
/shared/bitrix/activities/
/shared/bitrix/admin/
/shared/bitrix/backup/
/shared/bitrix/click.php
/shared/bitrix/components/bitrix/
/shared/bitrix/coupon_activation.php
/shared/bitrix/footer.php
/shared/bitrix/gadgets/
/shared/bitrix/header.php
/shared/bitrix/image_uploader/
/shared/bitrix/images/
/shared/bitrix/index.php
/shared/bitrix/js/
/shared/bitrix/license_key.php
/shared/bitrix/modules/
/shared/bitrix/otp/
/shared/bitrix/p3p.xml
/shared/bitrix/redirect.php
/shared/bitrix/rk.php
/shared/bitrix/rss.php
/shared/bitrix/sounds/
/shared/bitrix/spread.php
/shared/bitrix/stop_redirect.php
/shared/bitrix/template/
/shared/bitrix/themes/
/shared/bitrix/tmp/
/shared/bitrix/tools/
/shared/bitrix/urlrewrite.php
/shared/bitrix/virtual_file_system.php
/shared/bitrix/web.config
/shared/bitrix/wizards/
/shared/bitrix/.settings.php
/shared/bitrix/.settings_extra.php
/shared/bitrix/php_interface/dbconn.php
/shared/bitrix/cache/
/shared/bitrix/managed_cache/
/shared/bitrix/stack_cache/
/shared/bitrix/html_pages/
@rhamdeew
Copy link
Author

Директория shared используется потому что .gitignore от многосайтовой конфигурации битрикса где общее ядро кладется в директорию shared и через символьные ссылки становится доступным всем сайтам.
Если у вас один сайт на Битрикс - убирайте /shared из файла.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment