0
git與.gitignore一起位於子目錄(「web」文件夾)中。以下gitignore代碼給我一些問題。gitignore子目錄中不允許列入白名單的條目
**/app/themes/ #Should ignore all folders in the themes subdirectory
!*/app/themes/folder1 #allow one single folder and it's content to be versioned
我嘗試了幾個組合/ /應用程序/主題和* /應用程序/主題 - 任何幫助將是美好的!提前致謝!!
哇,好的謝謝!這工作 - 但我只使用1 *而不是2。顯然我需要稱它爲一個夜晚。我很感激! –
區別在於*將匹配* themes *目錄中的所有文件和文件夾,**也將匹配子文件夾中的內容 - 但由於gitignore無論如何遞歸地工作,它在那裏沒有什麼區別。很高興我能幫上忙! – lzmartinico
這是否意味着匹配中的遞歸導致異常不能與**一起工作? –