gitignore wierdness:选中ignore显示文件被忽略,但文件显示为已修改

gitignore wierdness:选中ignore显示文件被忽略,但文件显示为已修改,git,gitignore,Git,Gitignore,git状态显示: # On branch master # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: InstructorsMvc

git状态显示:

# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   InstructorsMvc/InstructorsMvc.Publish.xml
#       modified:   QiActivationMvc/QiActivationMvc.Publish.xml
#       modified:   QiMvc/QiMvc.Publish.xml
#
因此,在gitignore的第118行正确地忽略了该文件,但显示修改了吗


嗯。。。我在这里做错了什么…?

看起来该文件在您的git树的某个地方。因此,在某个时刻,您成功地添加并提交了它
git-rm
将作为新提交的一部分删除它。

我相信我已经做过一次了,不知怎的,他们回到了…:-/
.gitignore:118:*.[Pp]ublish.xml ".\\InstructorsMvc\\InstructorsMvc.Publish.xml"