Git,Hg或Bzr - 推荐给新用户? [英] Git, Hg or Bzr — Which to recommend to a new user?

查看:271
本文介绍了Git,Hg或Bzr - 推荐给新用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些朋友对我们即将发布的主要论文(Latex文档和各种程序设计)学习使用版本控制系统感兴趣。我不是在讨论任何庞大而复杂的东西,只是为了备份,查看旧版本和一些基本的分支和合并。

然而,我认为它是一个好主意,选择一个有点容易为初学者学习。所以问题是,你会推荐哪个版本控制系统给那些不熟悉这种东西的人学习?



就我个人而言,我一直在使用Git和Mercurial我认为我倾向于Mercurial的那一刻。尽管如此,我还没有尝试Bazaar。



到目前为止,这是我对适合新用户的功能的印象:

Mercurial



优点


  • 修订编号

  • 轻松签出旧提交,处理并合并到
  • 直接使用mergetool轻松合并

  • 简单的分支(?)

  • 好的插件,例如glog



缺点:
$ b


  • 分支和书签都可以用于Git调用分支 - 可能有点令人困惑

  • 没有提供执行命令时完成/错误的信息


Git

p>


  • 完全控制(至少给人印象)
  • 当出现问题时提供详细的帮助和信息



缺点: b
$ b


  • 一些困难的概念(如暂存区)

  • 一些分支操作可能有点困难





未尝试过...



您认为什么?请在回答时按照良好的主观准则进行操作。

$ b

解决方案

最后几个我从头开始修改控制的人一直在用git(包括我女儿在她12岁左右时)。我也教过新用户mercurial。



对于没有修订控制经验的人来说,两者同样简单。对于被颠覆或者CVS破坏的人来说,git最初更加困难(尽管取决于他们愿意理解基本原则而不是盲目地让事情发挥作用,git很容易)。 基于此,以及其他一些回应和我个人的偏见,我认为git是最好的答案。仅在github上就有近两百万个git存储库。这不会很快。


I have some friends that are potentially interested in learning to use a version control system for our upcoming master theses (Latex document and various programming). I'm not talking about anything huge and complicated here, just to use it for backup, looking at old revisions and some basic branching and merging.

However, I think it's a good idea to choose one that's somewhat easy to learn for a beginner. So the question is, which version control system would you recommend to someone that's new to such things to learn?

Personally I've been using Git and Mercurial a bit and at the moment I think I'm leaning towards Mercurial. I haven't tried Bazaar though.

So far this is my impressions on features suitable for new users:

Mercurial

Pros:

  • Revision numbering
  • Easy to checkout an old commit, work on it and merge it in
  • Easy merging directly with a mergetool
  • Easy branching (?)
  • Nice plugins like glog

Cons:

  • Branches and bookmarks can both be used for what Git calls branching - could be a bit confusing
  • Doesn't give much information about what's done/wrong when a command is executed

Git

Pros:

  • Full control (gives the impression of it at least)
  • Detailed help and information when something goes wrong

Cons:

  • Some difficult concepts (like the staging area)
  • Some branching operations can be a bit difficult

Bazaar

Haven't tried it...

What do you think? Please follow the good subjective guidelines here when answering.

解决方案

The last few people I've taught revision control from scratch has been with git (including my daughter when she was about 12). I've also taught new users mercurial.

For someone with no revision control experience, both were equally easy. For someone broken by subversion or CVS, git was initially harder (though depending on their willingness to understand the fundamentals vs. blindly make things work, git was quite easy).

Based on that, and some of the other responses here and my own personal bias, I think git is the best answer. There are nearly two million git repositories on github alone. It's not going anywhere soon.

这篇关于Git,Hg或Bzr - 推荐给新用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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