Drupal Modelo de .gitignore
Standard Drupal gitignore template from upstream github/gitignore collection. Gerado e mesclado de forma determinística com os padrões oficiais do GitHub para manter seu repositório livre de pastas de pacotes, artefatos de compilação e arquivos de ambiente local.
Gerador interativo de stack
Abrir no gerador completoStandard Drupal gitignore template from upstream github/gitignore collection
### 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 Código bruto de Drupal .gitignore
Modelo oficial original rastreável# 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 Detalhamento de padrões essenciais
Dependências e pacotes
Exclui pastas de bibliotecas instaladas e pacotes de terceiros que podem ser restaurados via gerenciadores de pacotes.
Artefatos de compilação e build
Ignora binários compilados, arquivos de objetos intermediários e diretórios de saída gerados durante a compilação.
Cache e arquivos temporários
Ignora caches de compiladores, dados de cobertura de testes e arquivos de rascunho temporários.
Origem e verificação
Coloque este arquivo na raiz do seu projeto com o nome .gitignore. As alterações passam a valer para arquivos novos ou não rastreados.