We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
我推荐几乎任何分布式版本控制系统。我愤怒地使用过 git 和 hg,并戳过 fossil(我将其包含在内,因为它提供了 git 所没有的一些功能) /code> 和
hg
缺少)。我将分解我眼中的主要优点和缺点(注意:如果它们都具有相同的优点,我不会提及它,例如,它们都快速且轻量级):git
hg
时感觉很糟糕git
那么大的动力git
更好,但似乎相当停滞fossil
(免责声明:我没有在愤怒中使用过这个)git
或hg
的势头fossil
的 Eclipse 集成不存在(这是我最后一次查看)还有其他 DVCS,特别是包括
darcs
和bzr
,但我还没有充分使用它们,无法对它们提出有价值的意见。I'd recommend pretty much any of the distributed version control systems. I've used
git
andhg
in anger, and poked atfossil
(I include it because it offers some features thatgit
andhg
lack). I'll break down the major pros and cons in my eyes (NOTE: if they all have the same advantage I'm not going to mention it, e.g., they're all fast and lightweight):git
hg
git
git
's, but seemed rather stagnantfossil
(disclaimer: I haven't used this one in anger)git
orhg
fossil
is non-existent (it was the last time I looked)There are other DVCSs out there, notably including
darcs
andbzr
, but I've not used them enough to have a worthwhile opinion on them.a/ 有必要有一个 VCS
b/ CVCS 和 DVCS 有很大不同
c/ Eclipse 目前是 将其所有项目移至 Git(并且在 EGit 上进行改进),因此 Git 将成为 Eclipse 上的 VCS 目标。
a/ It is necessary to have a VCS
b/ CVCS and DVCS are quite different
c/ Eclipse is currently moving all its project to Git (and is improving on EGit), so Git will be the VCS target on Eclipse.
Git,因为您可以立即开始,不需要中央存储库服务器。
其他一些优点(与其他 SCM 相比):
我感觉 Git 非常轻量级,所以没有理由等到你的项目“足够大”或者其他什么的。
Git, because you can start right away and don't need a central repository server.
Some other advantages (compared to other SCMs):
I have the feeling Git is very lightweight, so there no reason to wait until your project is "big enough" or whatever.
您的评论使您看起来真正的问题是您是否真的需要使用版本控制,因为这是一个单人项目。
设置和使用 git 或 Mercurial 只需很少的时间。去做就对了。如果你不需要它,你就损失了几分钟的时间。如果您确实需要它,它可能会为您节省数周的时间。
Your comment makes it seem like your real question is whether or not you really need to use version control, given that it's a one-person project.
It takes very little time to set up and use git or mercurial. Just do it. If you don't need it, you've lost a few minutes. If you do need it, it could potentially save you weeks.
据我了解,这只是你最喜欢哪种版本控制系统的问题。
但我认为性能最好的系统可能是 git。 http://www.eclipse.org/egit/ 对于 eclipse 插件:)
我会推荐无论如何都要使用版本控制系统。即使在小型项目中,您也会很快意识到以前的解决方案可能会更好。如果没有版本控制系统,您将很难恢复更改或恢复到以前的版本(好吧,这是这些系统的巨大优势之一,对吗?;))。
As far as I understand, it is just a question of which version control system you prefer most.
But the most performant system is probably git I think. http://www.eclipse.org/egit/ for the eclipse plugin :)
I would recommend to use a version control system anyway. Even in small projects you will come very fast to the point that a previous solution maybe would have been better. Without a version control system you will do hard reverting changes or revert to previous versions (well, that is one of the great advantages of these systems, right? ;) ).
Git 和 Mercurial (hg) 作为分布式源代码存储库确实有很大的动力,但在我看来,对于一个人乐队来说,您会发现 Subversion 提供了最大的支持。如果您使用的是 Windows,那么 TortoiseSVN shell 集成非常棒(它甚至与 Trac 集成),并且免费的 Subversion 托管无处不在,并且对 ProjectLocker.com 有一些个人经验(他们支持 Git 和 SVN)。此外,Subversion 可以非常简单地直接集成到 Eclipse IDE 中。
Git and Mercurial (hg) do have a lot of momentum as distributed source code repositories but in my opinion, for a one man band, you will find the most support with Subversion. If you are in Windows there's TortoiseSVN shell integration which is fantastic (it even integrates with Trac) and free Subversion hosting is all over the place and have some personal experience with ProjectLocker.com (they do Git and SVN). Also, Subversion is pretty straightforward to get integrated directly into the Eclipse IDE.
即使对于一个人来说,使用 SCM 而不是仅仅使用 Eclipse 历史记录也有很多好处:
对提交的评论:您可以说出为什么要做某事。当您需要根据某些代码的历史记录来找出为什么它会这样做时,这将为您提供帮助。
备份:哦,你把 Eclipse 工作区完全搞乱了?只需创建一个新的,并提取一份新的代码副本即可。
持续集成:检查代码是否在每次保存后构建,运行测试(这很重要),并创建实际的二进制文件发送给客户。
持续集成
这是您的安全网。花时间学习它,并正确使用它。你最终会喜欢它的:)
There are many benefits from using a SCM instead of just Eclipse histoiry even for just a single person:
comments on commits: you can say WHY you did something. This will help you when you need to figure out why some code does as it does, based on its history.
backups: Oh, you messed up your Eclipse workspace completely? Just create a new one, and pull in a fresh copy of the code.
continuous integration: check that code builds after every save, runs tests (this is important), and creates the actual binary to send to the customer.
It is your safety net. Take the time to learn it, and use it right. You will end up liking it :)