Xcode adding new files to existing project in svn

烈酒焚心 提交于 2019-12-12 23:45:22

问题


I have an existing project on svn and i want to commit a new ViewController class. My questions is along with the ViewController and .storyboard file do i also commit the project.pbxproj ? or is that not required.

Sorry about the silly question


回答1:


You only need to add the files to the svn repository which have been changed or newly added. Files unchanged don't need to commit. When you select a file from Source Control->Commit it will show you the preview for changes occurred in the file. If you are adding a new file then you should add like this Source Control->Add & then commit.

about project.pbxproj you don't need to commit this file if it already exists in repository




回答2:


Right click the new files, click Source Control -> Add

Then right click again , click Source Control -> Commit Selected Files

Thats it.



来源:https://stackoverflow.com/questions/15421386/xcode-adding-new-files-to-existing-project-in-svn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!