5
我已經包含在gitignore文件夾foo
:Git的清潔內忽略文件夾
- .gitignore (this contains 'foo')
- foo
*
*** bar
當我運行git clean -f
或git clean -f -x
,不會刪除酒吧(酒吧是一個正常的文件)。
有沒有辦法讓git清理被忽略的文件夾?
我已經包含在gitignore文件夾foo
:Git的清潔內忽略文件夾
- .gitignore (this contains 'foo')
- foo
*
*** bar
當我運行git clean -f
或git clean -f -x
,不會刪除酒吧(酒吧是一個正常的文件)。
有沒有辦法讓git清理被忽略的文件夾?
git clean -fdx
將刪除所有未跟蹤的文件,包括目錄。 -d
是必要的,使清潔劑下降到未跟蹤的目錄。