Skip to content

Commit 9f390ab

Browse files
committed
Ignore unnecessary drupal core files.
1 parent ec0f411 commit 9f390ab

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Diff for: .gitignore

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Ignore Drupal 8 core files.
2+
/web/*
3+
!/web/*/
4+
/web/sites/default/default.services.yml
5+
/web/sites/default/default.settings.php
6+
/web/sites/development.services.yml
7+
/web/sites/example.*.php
8+
9+
# Uncomment in case you want to commit a custom version of one of these files.
10+
#!/web/.htaccess
11+
#!/web/robots.txt
12+
#!/web/web.config
13+
114
# Ignore directories generated by Composer
215
/drush/contrib/
316
/vendor/
@@ -8,8 +21,7 @@
821
/web/libraries/
922

1023
# Ignore sensitive information
11-
/web/sites/*/settings.php
12-
/web/sites/*/settings.local.php
24+
/web/sites/*/settings*.php
1325

1426
# Ignore Drupal's file directory
1527
/web/sites/*/files/

0 commit comments

Comments
 (0)