I want /vendor/*
to be ignored except /vendor/magento/module-page-cache/
.
Based on this question: .gitignore exclude folder but include specific subfolder
I came up with following gitignore
/vendor/*
!/vendor/magento/
/vendor/magento/*
!/vendor/magento/module-page-cache/
When I do git status
it is only tracking /vendor/magento/
but nothing inside it.
Where did I go wrong?