1
我想/vendor/*
被忽略,除了/vendor/magento/module-page-cache/
。不排除特定文件夾
基於這樣一個問題:.gitignore exclude folder but include specific subfolder
我想出了以下gitignore
/vendor/*
!/vendor/magento/
/vendor/magento/*
!/vendor/magento/module-page-cache/
當我做git status
它只是跟蹤/vendor/magento/
,但沒有在它裏面。
我哪裏錯了?
嘗試'git status -uall'。 (Git沒有跟蹤或者沒有跟蹤目錄;'git status'只是默認*總結*) – torek
謝謝你,你是對的。 – Guerrilla