Xcode 4 和版本控制 - 但选哪一个呢?
我有一个问题,答案在技术上并不难,但我更想在这里寻找最高级程序员的经验。
因此,像许多菜鸟一样,我正在以最蹩脚的方式进行版本控制,即复制粘贴我的项目目录并使用当前日期/时间重命名它。 您会同意这是一个非常有限的解决方案:P
我决定学习版本控制系统,但我面临很多选择,我想知道什么最适合您的观点?
- 使用 Xcode 集成版本控制(git 或其他任何东西),以及组织者、克隆、来自 xcode 的提交等。我的意思是完全或几乎由 Xcode 控制?
- 忽略 Xcode 让他认为没有版本控制并自己在命令行中执行它?
- 上面两者的合并?如何 ?
然后:
- 使用 git ? Github很流行,也很强大,但是你一定要学git,而且要努力学。
- 水银?看起来更加友好。
- 还有别的吗?
获得更多经验丰富的人的反馈将是无价的,这样我和其他许多人我希望在面对 VCS 墙时能够选择自己的道路:-)
非常感谢!
I have a question, the answer isn't really hard technically, but I am more looking for the experience of most advanced programmers here.
So like many noobs, I am doing my version control in the crappiest way, which is to copy paste my project directory and rename it with the current date/time.
You will agree that it's a quite limited solution :P
I decided to learn version control system(s), but I am facing many choice, and I would like to know what are the best for your points of view ?
- Using Xcode integrated version control (git or anything else), with organizer, cloning, commits from xcode etc. I mean totally or almost controlled by Xcode ?
- Ignoring Xcode letting him think there no version control and doing it myself in command line ?
- A merge of the two above ? How ?
And then :
- Using git ? Github is very popular and powerful, but you must learn git, and learn it hard.
- Mercurial ? It seems more friendly.
- Something else ?
It would be priceless to have some feedbacks about more experienced people, so that me and many others I hope can choose their paths when facing the VCS wall :-)
Thanks a lot !!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
第一:完全使用 VCS。
其余的部分:
Mercurial 很好,但 Apple 在 Xcode 中使用了 Git。因此,如果您希望在 IDE 中集成源代码控制,Git 是最佳选择。
使用 Xcode 和 Xcode 时我最怀念的事情Mercurial 是源列表和集成差异查看器中的“修改”指示器。 (这在 Xcode IMO 中相当不错)
您在 Organizer 中执行的操作目前有点受限,但您始终可以回退到 Terminal.app 来执行此操作。
First: Use a VCS at all.
The rest:
Mercurial is nice, but Apple went with Git for Xcode. So if you want source control integration within the IDE, Git is the best option.
The things I miss most when working with Xcode & Mercurial are the "Modified" indicators in the source list and the integrated diff-viewer. (Which is pretty good in Xcode IMO)
The actions you perform in the Organizer are a bit limited at the moment, but you can always fall back to Terminal.app for that.
我只能推荐git。合并很容易,我记得SVN发生合并冲突的日子,解决这些冲突是痛苦的,可怕的痛苦。您可以使用 git 轻松启动本地存储库,特别是如果您是唯一的开发人员。
看看 哪个 SCM 系统对于一个孤独的开发者来说,与 Xcode 4 一起使用?。
我建议一开始就读一些关于 git 的文章:
I can only recommend git. Merging is easy, I remember the days when a merge conflicts occured with SVN, it was pain, horrible pain to resolve those. You can easily start a local repository with git, especially if you are the only one developer.
Have a look at Which SCM system to use with Xcode 4 for a lone developer?.
I suggest some reading on git for the beginning:
花一些时间学习 git 的基础知识,让你开始基本使用绝对不是火箭科学,你会立即从中受益。一旦你了解了 git 的基础知识,你就不会被另一个包装 git 的工具所束缚,如果 XCode 出现问题,你可以使用 git。此外,git 可用于多种操作系统,因此即使您在具有不同操作系统的不同计算机之间移动,您获得的有关 git 的知识也不会消失。
以下是我最好的 git 书签:
http://www.delicious.com/Ralphtheninja/bestof+ git
Take some time to invest in learning the basics of git, it's absolutely no rocket science to get you started on basic usage and you will benefit from it right away. Once you know the basics of git, you aren't locked into another tool wrapping git, you can use git if there are some problems with XCode. Also, git is available for several OS so the knowledge you gain about git will not go away if you move between different computers that have different OS.
Here are my best of bookmarks for git:
http://www.delicious.com/Ralphtheninja/bestof+git
我在 SubVersion 方面取得了巨大成功。
I've had good success with SubVersion.