framework49 個の有効ルール2026-09-30 検証済み
Drupal .gitignore テンプレート
Standard Drupal gitignore template from upstream github/gitignore collection. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。
スタック統合ジェネレーター
フルジェネレーターで開く/
Search for templates
クイック追加:
選択中1
Drupal
選択されたテンプレート (1)
Drupal
framework
Standard Drupal gitignore template from upstream github/gitignore collection
#drupal
.gitignore
49 ルール•1 テンプレート
### Drupal #### gitignore template for Drupal 8 projects## earlier versions of Drupal are tracked in `community/PHP/`## follows official upstream conventions:# https://www.drupal.org/docs/develop/using-composer # Ignore configuration files that may contain sensitive information/web/sites/*/*settings*.php/web/sites/*/*services*.yml # Ignore paths that may contain user-generated content/web/sites/*/files/web/sites/*/public/web/sites/*/private/web/sites/*/files-public/web/sites/*/files-private # Ignore paths that may contain temporary files/web/sites/*/translations/web/sites/*/tmp/web/sites/*/cache # Ignore drupal core (if not versioning drupal sources)/web/vendor/web/core/web/modules/README.txt/web/modules/contrib/web/profiles/README.txt/web/profiles/contrib/web/sites/development.services.yml/web/sites/example.settings.local.php/web/sites/example.sites.php/web/sites/README.txt/web/themes/README.txt/web/themes/contrib/web/.csslintrc/web/.editorconfig/web/.eslintignore/web/.eslintrc.json/web/.gitattributes/web/.htaccess/web/.ht.router.php/web/autoload.php/web/composer.json/web/composer.lock/web/example.gitignore/web/index.php/web/INSTALL.txt/web/LICENSE.txt/web/README.txt/web/robots.txt/web/update.php/web/web.config # Ignore vendor dependencies and scripts/vendor/composer.phar/composer/robo.phar/robo/drush.phar/drush/drupal.phar/drupal 67 行•UTF-8•LF
決定論的パイプライン
生ソース: Drupal .gitignore
クローラブルな公式アップストリーム原典drupal.gitignore•66 lines•UTF-8
# gitignore template for Drupal 8 projects## earlier versions of Drupal are tracked in `community/PHP/`## follows official upstream conventions:# https://www.drupal.org/docs/develop/using-composer # Ignore configuration files that may contain sensitive information/web/sites/*/*settings*.php/web/sites/*/*services*.yml # Ignore paths that may contain user-generated content/web/sites/*/files/web/sites/*/public/web/sites/*/private/web/sites/*/files-public/web/sites/*/files-private # Ignore paths that may contain temporary files/web/sites/*/translations/web/sites/*/tmp/web/sites/*/cache # Ignore drupal core (if not versioning drupal sources)/web/vendor/web/core/web/modules/README.txt/web/modules/contrib/web/profiles/README.txt/web/profiles/contrib/web/sites/development.services.yml/web/sites/example.settings.local.php/web/sites/example.sites.php/web/sites/README.txt/web/themes/README.txt/web/themes/contrib/web/.csslintrc/web/.editorconfig/web/.eslintignore/web/.eslintrc.json/web/.gitattributes/web/.htaccess/web/.ht.router.php/web/autoload.php/web/composer.json/web/composer.lock/web/example.gitignore/web/index.php/web/INSTALL.txt/web/LICENSE.txt/web/README.txt/web/robots.txt/web/update.php/web/web.config # Ignore vendor dependencies and scripts/vendor/composer.phar/composer/robo.phar/robo/drush.phar/drush/drupal.phar/drupal 主要除外パターンの解説
依存関係・パッケージフォルダ
パッケージマネージャーによって再インストール可能な外部ライブラリや vendor フォルダを除外します。
/web/vendor/vendor
ビルド・コンパイル生成物
ビルド処理で生成されるバイナリ、オブジェクトファイル、出力先ディレクトリを除外します。
/web/.ht.router.php
キャッシュ・一時ファイル
コンパイラキャッシュ、テストカバレッジデータ、一時作業ファイルを除外してリポジトリを軽量に保ちます。
/web/sites/*/tmp/web/sites/*/cache
ソース元とライセンス検証
ライセンス:: CC0-1.0
このファイルをプロジェクトのルートディレクトリに .gitignore というファイル名で配置してください。新規および未追跡ファイルに即座に反映されます。