7
我下載了linux內核源碼,並且想要git add
這些。「git add」操作時不會添加文件別名'samefile'('索引中已存在'SameFile')「
當我git add .
,git開始添加它們。但很快就返回一個錯誤:
fatal: Will not add file alias 'include/linux/netfilter/xt_connmark.h' ('include/linux/netfilter/xt_CONNMARK.h' already exists in index)
這是奇怪的,xt_connmark.h
和xt_CONNMARK.h
是完全不同,爲什麼抱怨錯誤?這些情況也出現在其他文件夾中。我不能單獨改變他們的名字來解決這個問題。即使我嘗試git add --ignore-errors .
,它也行不通。它只是停止不忽略這個錯誤。誰都知道解決方案
設置是什麼'混帳配置--get core.ignorecase'回報? – DCoder 2014-08-30 08:26:56
它返回'真'。 – naive231 2014-08-30 08:28:21
我知道你的答案!因爲我設置了'忽略大小寫',所以git認爲它們是同一個文件,對吧? – naive231 2014-08-30 08:32:55