2
儘管.gitignore
應該忽略它們,但我仍然有一些衝突的文件。如果我嘗試更新解決方案,我會得到Unmerged path
。儘管gitignore應該忽略它們,文件仍然存在衝突
git status
帶來如下:
On branch master
Your branch is up-to-date with 'origin/master'.
Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git add/rm <file>..." as appropriate to mark resolution)
deleted by us: abc_Library.userprefs
deleted by us: abc_Library/bin/Debug/abc_Library.dll
deleted by us: abc_Library/bin/Debug/abc_Library.dll.mdb
deleted by us: abc_Library/obj/Debug/abc_Library.dll
no changes added to commit (use "git add" and/or "git commit -a")
我已經定義了以下.gitignore
[Bb]in/
[Oo]bj/
*.userprefs
.DS_Store
我能記得的我已經有fixed the untracked files。是否可以是團隊成員沒有gitignore
文件並再次添加不需要的文件?或者我應該再次修復未跟蹤的文件?
編輯:
現在我用
git rm --cached abc_Library/obj/Debug/abc_Library.dll
和文件不會再出現衝突。
*這可能是一個團隊成員沒有'.gitignore'文件* [...]?版本控制下的'.gitignore'文件本身? – Jubobs 2015-01-15 16:06:32
我只將該文件添加到我的電腦。我如何驗證它是否受版本控制? – testing 2015-01-15 16:39:36
嘗試運行,例如,'git ls-tree --name-only origin/master - .gitignore'。 – Jubobs 2015-01-15 16:42:25