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!
As mentioned in the
gitignoreman page:If
glucosia.xcodeproj/project.pbxproj(as suggested by Alan in the comments) is already tracked, you need to remove it from the cache, and then the gitingore directive will take effect.If the file was already committed, see this SO answer (
git commit --amendto remove it from the latest commit)