How to set up an SCM in Xcode?

前端 未结 3 1644
心在旅途
心在旅途 2020-12-20 21:26

I know Xcode can be hooked up to an SCM. But how would I set this up from scratch? How to check out / commit files into that, after setting it up?

相关标签:
3条回答
  • 2020-12-20 21:39

    Once it is set up, several new menu items appear in the SCM menu. You can right-click over specific filenames and perform some SCM operations that way.

    You can also right-click over "Groups & Files" and enable "SCM" there, which will show which files are new or modified.

    I never used Xcode's SCM features for anything more than to see what files I've modified, a feature that only helped me find the code I was currently fixing. For all the updates & commits, I would use the command line, but that's a personal preference. I'm a long-time command-line CVS and SVN user. It is faster for me on the command line.

    0 讨论(0)
  • 2020-12-20 21:46

    A great guide for setting up subversion repository & configuring with XCode - http://iphonedevelopment.blogspot.com/2009/03/version-control-is-your-friend.html

    Other useful resources -

    1) http://developer.apple.com/tools/subversionxcode.html

    2) Which SCM system for Xcode?

    3) http://www.covertapps.com/development/6-setting-up-your-xcode-scm-repositories

    Thanks,

    Sagar

    0 讨论(0)
  • 2020-12-20 21:49

    I highly recommend starting with git - while I once preferred perforce I don't like paying for it and lack of Xcode integration makes it tedious. Git is supported in Xcode 4. Using it without integration for a month or two would be invaluable as you will then understand more of what is going on... SCM, like data backups, is only any good when you understand it and use it right.

    I like git because it can be used as a local SCM with replication/sync with a central repository. It is widely used and actively maintained. It is free & open source, and I have used it as part of a team delivering a very complex and successful iPhone app.

    I really like Git Tower as a GUI.

    0 讨论(0)
提交回复
热议问题