我正在使用
Xcode 4.3.2并意识到项目文件没有添加到git repo中,所以我添加了它们并提交了:(有6个文件)
- # On branch master
- # Changes to be committed:
- # (use "git reset HEAD <file>..." to unstage)
- #
- # new file: Proj01.xcodeproj/project.xcworkspace/contents.xcworkspacedata
- # new file: Proj01.xcodeproj/project.xcworkspace/xcuserdata/jeremy.xcuserdatad/UserInterfaceState.xcuserstate
- # new file: Proj01.xcodeproj/project.xcworkspace/xcuserdata/jeremy.xcuserdatad/WorkspaceSettings.xcsettings
- # new file: Proj01.xcodeproj/xcuserdata/jeremy.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
- # new file: Proj01.xcodeproj/xcuserdata/jeremy.xcuserdatad/xcschemes/FlipCard.xcscheme
- # new file: Proj01.xcodeproj/xcuserdata/jeremy.xcuserdatad/xcschemes/xcschememanagement.plist
但实际上这是一个好习惯吗? (一次Xcode崩溃,文件夹.xcodeproj消失了).
解决方法
如上所述,你的.xcodeproj非常重要,应该包含在你的提交中
我只想添加关于使用git使用git的链接,这对我帮助很大:http://shanesbrain.net/2008/7/9/using-xcode-with-git