独立开发者使用Xcode 4的哪个SCM系统? [英] Which SCM system to use with Xcode 4 for a lone developer?

查看:125
本文介绍了独立开发者使用Xcode 4的哪个SCM系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一位iOS开发人员,希望更好地管理我创建的项目。我以前从未接触过SCM,所以我不确定要使用哪个系统。



我想跟踪我为老板制作的不同应用程序的变化,但也让他们在一个集中的地方,并且能够分支关闭并正在使用与主应用程序分开的功能,然后在完成时将修改合并回去。所有这些都将在本地完成(存储在我办公室的外部硬盘上),一旦完成版本,我希望能够导出没有SCM功能的副本发送给我的老板。



我刚刚升级到Xcode 4,并注意到Git内置了。我使用Subversion和Git进行游戏,但听起来Git更符合我的需求。但是,Subversion似乎完全不同。 Xcode 4文档建议Git最适合单个开发人员,但似乎并非如此。如果git存储库在你的工作副本中,你究竟怎么做它的分支?你在哪里发送更改?你是否复制整个工作目录并将它用作你的分支?



只要找一个人用简单的英语解释哪个SCM系统最适合单独的开发人员使用和任何人们可能知道的教程来帮助我理解它。



感谢您的帮助!

方案

去git!

存储库实际上驻留在您的工作目录中。 .git文件夹包含所有关于您的分支和提交以及任何内容的数据。如果你愿意,你可以创建一个裸存储库(只有.git文件夹的内容),但同时拥有这两个存储库是非常好的,尤其是如果你是一个不需要分发的开发人员。



在git中分支很简单:

 #创建分支
git分支mybranch

#切换到分支
git checkout mybranch

#显示分支
git分支

Git不依赖像svn这样的服务器。您可以使用遥控器进行分布式开发,但这不是必需的。



如果您希望为您的老板制作一份没有git文件的副本,请执行以下操作:

  git archive branchname --format = zip -o tree.zip 

I建议在Git上阅读


I'm an iOS developer looking to better manage the projects I am creating. I've never touched SCM before so I'm not sure which system to use.

I'd like to keep track of changes to the different apps I'm making for my boss, but also have them in a centralised place, and be able to branch off and be working on features separate from the main app and then merge the changes back in when I'm finished. All of this will be done locally (stored on an external hard disk in my office), and once versions are complete I'd like to be able to export a copy without the SCM features to send to my boss.

I've just upgraded to Xcode 4 and noticed Git is built in. I played around with both Subversion and Git, but it sounds like Git is what would fit my needs better. However, it seems to be totally different to Subversion. The Xcode 4 documentation suggests Git is best for lone developers, but that doesn't seem the case. If the git repository is inside your working copy, how on earth do you make branches of it? Where do you send your changes to? Do you copy the entire working directory and use that as your branch?

Just looking for someone to explain in plain english which SCM system would be best for a lone developer to use and any tutorials people may know of to help me understand it.

Thanks for any help!

解决方案

Go for git!

The repository actually resides in your working directory. There is .git folder which contains all the data about your branches and commits and whatsoever. You can create a bare repository(only the contents of the .git folder) if you like but having both in the same place is nice, especially if you are a single developer who doesn't need distribution.

Branching in git is very easy:

# create the branch
git branch mybranch

# switch to branch
git checkout mybranch

# show branches
git branch

Git does not depend on a server like svn does. You can have distributed development by using remotes but this is not necessary.

If you like to make a copy for your boss without the git files in it do a

git archive branchname --format=zip -o tree.zip

I suggest some reading on git

这篇关于独立开发者使用Xcode 4的哪个SCM系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆