Last active
September 23, 2022 09:47
-
-
Save aramboyajyan/3daef9a2bd3badc7afc8dec4ab32eda3 to your computer and use it in GitHub Desktop.
.gitignore for Drupal 8 / 9 / 10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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