git status 显示:
# 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
#
但我想......呃等等......我的 Publish.xml 文件(由 VS Ftp Deploy 使用)应该被忽略!
所以我输入git check-ignore InstructorsMvc/InstructorsMvc.Publish.xml --verbose
:
.gitignore:118:*.[Pp]ublish.xml ".\\InstructorsMvc\\InstructorsMvc.Publish.xml"
因此,该文件在第 118 行的 gitignore 中被正确忽略,但显示已修改?
嗯……我在这里做错了什么……?