Skip to content

Commit abd3eb5

Browse files
authored
Merge pull request #5 from magento-l3/ACP2E-85
ACP2E-241: Tracked .gitignore file is overriden by composer
2 parents b9f929f + e33f223 commit abd3eb5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/Deploy.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,23 @@ for this you can use `magento-deploy-ignore` which works either global or on mod
8282

8383
may not work for symlink, when file/directory is content of a symlinked directory
8484

85+
### How to prevent your custom .gitignore file to be overridden
86+
87+
In case you want to keep your custom .gitignore file then you need to ignore it in the _magento-deploy-ignore_ section.
88+
89+
```json
90+
{
91+
...
92+
"extra": {
93+
"magento-deploy-ignore": {
94+
"*": [
95+
"/.gitignore"
96+
]
97+
}
98+
}
99+
...
100+
}
101+
```
85102

86103
### None Deploy
87104
If you only want to place packages into the vendor directory with no linking/copying into Magento's folder structure use this deploy strategy.

0 commit comments

Comments
 (0)