Why is .gitignore not including a file prefixed by a !
问题 My .gitignore file reads as follows: build/ glucosia.xcodeproj/ !glucosia.xcodeproj/project.pbxproj core-plot/framework/build core-plot/framework/CorePlot-CocoaTouch.xcodeproj/ !core-plot/framework/CorePlot-CocoaTouch.xcodeproj/project.pbxproj .DS_Store Classes/.DS_Store Strangely, glucosia.xcodeproj/project.pbxproj is not ignored, as I would expect. But, core-plot/framework/CorePlot-CocoaTouch.xcodeproj/project.pbxproj is still being ignored. Any ideas? Thanks! 回答1: As mentioned in the