2012-08-01 87 views

回答

11

從回購根,試試這個:

find . ~/.gitignore .git/info/exclude -name '*gitignore' -exec cat {} + | less 

此外,檢查你不使用一個不同的排除文件:

git config -l | grep exclude 
core.excludesfile=~/.gitignore 

can also get that error when you have submodules in a subfolder instead at the git project's root

感謝Jon LinChristopher幫助我解決了original question

+0

我知道找到這條線的唯一方法就是二分查找。 (刪除一半的排除,看看它是否仍然被忽略,...) – idbrii 2013-12-16 22:15:49

+0

在我的情況下,第二個命令找到了罪魁禍首,它似乎像core.excludesfile的默認版本忽略'標籤',至少是由boxen安裝的。當試圖添加新的JSTL .tag文件時,這對我們造成了很多困惑。 – JBCP 2013-12-17 03:24:00

+0

救主!對於任何使用Cloud9 IDE的人來說,我發現你需要升級到〜/ .gitignore。因爲你從〜/ workspace /開始,這意味着你可能不會發現.gitignore。在家裏的這個.gitignore有大量的默認忽略,我沒有設置,這給我造成了混亂。 – redfox05 2015-12-09 15:32:55