Can git be integrated with Xcode?

后端 未结 14 1399
星月不相逢
星月不相逢 2020-11-28 17:54

Is there any way to use a git repository with the built in SCM functions of Xcode?

相关标签:
14条回答
  • 2020-11-28 18:23

    NOTE: despite all the up-votes, this answer is out of date as of June 2010


    There's no git support within Xcode, but that's no reason not to use git for your Xcode projects. I've had good results managing my Xcode projects using the standard git command line or GitX.

    Shane Vitarana has a nice set of .gitignore settings to use as a starting point.

    0 讨论(0)
  • 2020-11-28 18:25

    With Xcode 4 if you want to use your own version of Git you can create a symlink from /usr/bin/git to wherever you have installed your Git binary

    0 讨论(0)
  • 2020-11-28 18:30

    Xcode doesn't have a public plug-in API, so no, there's no way to directly add support for git to Xcode.

    You can, however, create scripts for Xcode's script menu that can perform various git operations.

    0 讨论(0)
  • 2020-11-28 18:30

    I don't believe there's a way to provide plug-in support for Xcode. So, until Apple warms up to git, we'll be stuck with 3rd party tools and the command line. Not that that's a bad thing...

    0 讨论(0)
  • 2020-11-28 18:31

    Well, there is this thing called git-cvsserver that lets git pretend it's CVS. But I don't know the state of affairs concerning that, or CVS support in Xcode.

    0 讨论(0)
  • 2020-11-28 18:32

    With the latest Xcode 4.1 it's definitely possible and everything you need is installed by default.

    I wrote a blog post just about this very topic:

    Xcode iPhone beginner projects with GitHub integration

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