Skip to content

Instantly share code, notes, and snippets.

@aramboyajyan
Last active September 23, 2022 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aramboyajyan/3daef9a2bd3badc7afc8dec4ab32eda3 to your computer and use it in GitHub Desktop.
Save aramboyajyan/3daef9a2bd3badc7afc8dec4ab32eda3 to your computer and use it in GitHub Desktop.
.gitignore for Drupal 8 / 9 / 10
# Ignore directories generated by Composer
/drush/contrib/
/vendor/
/web/core/
/web/modules/contrib/
/web/themes/contrib/
/web/profiles/contrib/
/web/libraries/
# Ignore sensitive information
/web/sites/*/settings.php
# Make sure that we ignore all variations of settings.php file.
/web/sites/*/settings.*.php
# Ignore Drupal's file directory
/web/sites/*/files/
/web/files/
# Ignore the private files directory.
/drupal8-private/
# Ignore files generated by PhpStorm
/.idea/
# Ignore the ddev directory.
/.ddev/
# Ignore .env files as they are personal
/.env
# Ignore the DS_Store file generated by Finder.
**/.DS_Store
# Ignore unnecessary files.
**/*.log
**/*.sql
**/*.sqlite
**/*.mp3
**/*.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment