我正在使用 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 不见了)。