Чем действительно отличаются Mercurial и Git? |
- Statistics
- Participants
- Translate into Russian
- Translation result
- Translated in draft, editing and proof-reading required. Completed: 9%.
If you do not want to register an account, you can sign in with OpenID.
The Real Difference Between Mercurial and Git | ||
There are a [lot](http://nubyonrails.com/articles/five-features-from-mercurial-that-would-make-git-suck-less) of [other](http://www.rockstarprogrammer.org/post/2008/apr/06/differences-between-mercurial-and-git/) [blog](http://importantshock.wordpress.com/2008/08/07/git-vs-mercurial/) [posts](http://jointheconversation.org/2008/11/24/on-mercurial.html) and [web sites](http://www.whygitisbetterthanx.com/) comparing [Mercurial][] and [git][]. | Существует [немало](http://nubyonrails.com/articles/five-features-from-mercurial-that-would-make-git-suck-less) [других](http://www.rockstarprogrammer.org/post/2008/apr/06/differences-between-mercurial-and-git/) [сообщений](http://importantshock.wordpress.com/2008/08/07/git-vs-mercurial/) в [блогах](http://jointheconversation.org/2008/11/24/on-mercurial.html) и [веб сайтов](http://www.whygitisbetterthanx.com/) со сравнением [Mercurial][] и [git][]. | |
Some of them are just plain outdated or wrong ([whygitisbetterthanx.com](http://whygitisbetterthanx.com/) for example, lists "cheap local branching" as a git advantage over Mercurial, when Mercurial actually has [*cheaper* branching][hgbranch] than git!). | Некоторые из них просто устарели или неверны ([whygitisbetterthanx.com](http://whygitisbetterthanx.com/), например, считает "дешёвые локальные ветки" преимуществом git над Mercurial, в то время, как ветки в Mercurial на самом деле [ещё *дешевле*][hgbranch] чем в git!) | |
Even the ones that aren't factually incorrect often seem to focus on features and speed. While this may have been relevant in the past, both systems have borrowed so much from each other that I don't think it's a very big deal today. | Даже те, которые не ошибочны фактически, часто сосредотачиваются на возможностях и скорости. Хотя это, возможно, было актуально в прошлом, обе системы имеют так много заимствований друг от друга, что я не думаю, что это очень важно сегодня. | |
This post is about what I feel are the last, most *important* differences between git and Mercurial. | Этот пост о том, что я считаю наиболее *важными* отличиями между git и Mercurial. | |
[Mercurial]: {{links.mercurial}} | ||
[git]: {{links.git}} | ||
[hgbranch]: http://stevelosh.com/blog/2009/08/a-guide-to-branching-in-mercurial/#branching-anonymously | [hgbranch]: http://stevelosh.com/blog/2009/08/a-guide-to-branching-in-mercurial/#branching-anonymously | |
[TOC] | ||
## The Big Difference | ||
I think there's still one very, very important difference left: **the systems *feel* very different to use**. | Я считаю, что осталось всего одно очень-очень важное отличие: **системы *ощутимо* отличаются при использовании**. | |
This might sound trivial, but I don't think it is. How a system "feels" matters. Version control is something you use *constantly*, so it's important to find a system that fits your way of thinking. | Это может прозвучать избито, но я так не думаю. То, как система "ощущается" — важно. Контроль версий — это то, что вы используете *постоянно*, поэтому очень важно найти систему, которая соответствует вашему образу мышления. | |
I'm a visual learner, so I find it helpful to make visual analogies when I'm trying to explain something. Here's how I visualize the difference between Mercurial and git: | Я лучше воспринимаю визуальную информацию и потому нахожу полезным прибегать к визуальным аналогиям, когда пытаюсь объяснить что-то. Вот так я ощущаю разницу между Mercurial и git: | |
 |  | |
Each git command is like a Swiss Army knife. For example, `git checkout` can switch the working directory to a new branch, update file contents to that of a previous revision, and even create a new branch. It's an efficient way to work once you learn all the arguments and how they interact with each other. | Каждая команда git — как швейцарский армейский нож. Например, `git checkout` может переключить рабочую директорию на новую ветку, обновить содержимое файлов до предыдущей ревизии, а также создать новую ветку. Это эффективный путь работать, если вы выучили все аргументы и как они взаимодействуют друг с другом. |
