Skip to content

Instantly share code, notes, and snippets.

@rmfranciacastillo
Last active May 24, 2024 00:54
Show Gist options
  • Save rmfranciacastillo/3fc54a3ed20a66c3a2b4fdfa2cc00c46 to your computer and use it in GitHub Desktop.
Save rmfranciacastillo/3fc54a3ed20a66c3a2b4fdfa2cc00c46 to your computer and use it in GitHub Desktop.
DDEV Drupal gitignore
# gitignore template for Drupal 10 projects
#
# earlier versions of Drupal are tracked in `community/PHP/`
# Ignore configuration files that may contain sensitive information
/sites/*/*settings*.php
/sites/*/*services*.yml
# Ignore paths that may contain user-generated content
/sites/*/files
/sites/*/public
/sites/*/private
/sites/*/files-public
/sites/*/files-private
# Ignore paths that may contain temporary files
/sites/*/translations
/sites/*/tmp
/sites/*/cache
# Ignore testing related files
/sites/simpletest
# vim scripts
tags
tags*
# Drupal
/vendor
/vendor/*
vendor
/web/core/*
/web/core
/web/modules/contrib
/web/modules/custom/zendesk-webform
/web/themes/contri# gitignore template for Drupal 8 projects
#
# earlier versions of Drupal are tracked in `community/PHP/`
# Ignore configuration files that may contain sensitive information
/sites/*/*settings*.php
/sites/*/*services*.yml
# Ignore paths that may contain user-generated content
/sites/*/files
/sites/*/public
/sites/*/private
/sites/*/files-public
/sites/*/files-private
# Ignore paths that may contain temporary files
/sites/*/translations
/sites/*/tmp
/sites/*/cache
# Ignore testing related files
/sites/simpletest
# vim scripts
tags
tags*
# Drupal
/vendor
/vendor/*
vendor
/web/core/*
/web/sites/default/files/*
!/web/sites/default/files/sync
/web/autoload.php
/web/index.php
/web/README.md
/web/update.php
/web/composer.json
/web/example.gitignore
/web/INSTALL.txt
/web/vendor
/web/profiles
/web/robots.txt
/web/web.config
/.editorconfig
/.gitattributes
# Ignore private local files
/web/files/private/*
# Ignore Backups
*.sql
/web/autoload.php
/web/index.php
/web/README.md
/web/update.php
/web/composer.json
/web/example.gitignore
/web/INSTALL.txt
/web/vendor
/web/profiles
/web/robots.txt
/web/web.config
/.editorconfig
/.gitattributes
# Ignore private local files
/web/files/private/*
# Ignore Backups
*.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment