简体   繁体   English

如何在 Xcode 中使用 git?

[英]How can I use git from within Xcode?

How can I use git from within Xcode?如何在 Xcode 中使用 git? I've found SVN easy to use from Xcode;我发现 SVN 从 Xcode 易于使用; can I use git as easily?我可以轻松使用 git 吗?

You CAN use git easily from Xcode.您可以从 Xcode 轻松使用 git。 Easily, but not well .容易,但不好

One of the design decisions Apple made with Xcode was to present a unified interface to version management regardless of what version control system was on the back-end. Apple 使用 Xcode 做出的设计决策之一是提供统一的版本管理界面,而不管后端的版本控制系统是什么。 So if you're using git, you only get the subset of git functionality that svn also supports.因此,如果您使用 git,您只能获得 svn 也支持的 git 功能的子集。 No index, no stash, not really even branching.没有索引,没有存储,甚至没有分支。

I've quit trying to use Xcode's onboard git "integration".我已经不再尝试使用 Xcode 的板载 git “集成”。 It's broken by design.它被设计破坏了。

In XCode 4 you get git support natively.在 XCode 4 中,您将获得 git 原生支持。 There's a buch of documentations on the internet:网上有很多资料:

Official doc here .官方文档在这里

Also, Google has LOADS of results on this matter...此外,谷歌在这件事上有很多结果......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM