diff --git a/.gitignore b/.gitignore index 753f10add..99a0822f2 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,12 @@ # Ignore .env files as they could contain sensitive information. /.env + +# Manage .gitattributes with Drupal scaffold for cross-platform compatibility. +# Remove the line below and commit the file for more granular control. +/.gitattributes + +# Manage all .gitignore files with Drupal scaffold. +# Remove the line below and commit the files for more granular control. +**/.gitignore + diff --git a/composer.json b/composer.json index 18b7bedfe..31a812d95 100644 --- a/composer.json +++ b/composer.json @@ -64,11 +64,9 @@ "composer-exit-on-patch-failure": true, "drupal-scaffold": { "file-mapping": { - "[project-root]/.gitattributes": false, "[project-root]/.gitignore": false, "[web-root]/INSTALL.txt": false, - "[web-root]/README.txt": false, - "[web-root]/example.gitignore": false + "[web-root]/README.txt": false }, "locations": { "web-root": "web/"