Live data from Hacker News

Why did Git become so popular?

programmers.stackexchange.com

101–110 of 122 posts

Re: Why did Git become so popular?

#101
post #47

Earlier quoted context omitted.

Even used like that, there are clear advantages to using git to preform that model rather than SVN. To really get the proper "just like SVN" experience you would have to find a way to make git suck at branches and merging, at the least.

I never found actually doing branches and merges in SVN any more difficult than git, not sure what the big differences are? OTOH not having to do the merges on the shared repo is much better and avoids the "don't checkout HEAD just yet 'cos it's all manor of fucked up right now" problem.

It is obviously a hard thing to quantify, but relative pain of branching and merging is apparent through the different version control styles commonly advocated/actually seen for both systems. As a simple example, while this (http://nvie.com/posts/a-successful-git-branching-model/) is certainly possible in SVN, I have never actually seen an SVN shop consistently doing that. To the extent that any I have seen do follow that model, they do so essentially at gunpoint, not because it is a pleasant thing to do. On the other hand that sort of thing is exceedingly simple and pleasant in git. As a consequence, in the real world, people are much more willing to employ both with git without any hesitation at all.

Also poorly quantifiable is the sense of fear or anticipation that courses through your veins when you hear the phrase, in an SVN shop, "Hey, I've got a feature branch I want to merge in."

Re: Why did Git become so popular?

#102
post #72

Earlier quoted context omitted.

I can sympathize with the difficulty of persuading others. But consider this not-so-far-fetched example: if you're choosing an open-source database, you would choose MySQL based on popularity instead of PostgreSQL, which I would argue in most cases is a mistake--which you'll likely have to live with for years.

That's not a fair comparison. Mercurial is better than git in certain aspects (mainly command line experience) but git by itself is a solid content tracker. It has an extremely simple data model and it's rock solid. As someone else said in this thread, git has no separate notion of 'branch', 'tag' like Mercurial. In a way, git is actually like PostgreSQL, a solid piece of software which you can trust.

It's more than just command line stuff; Google did an extensive comparison that more people should look at: http://code.google.com/p/support/wiki/DVCSAnalysis

Re: Why did Git become so popular?

#103
post #72
post #35

Earlier quoted context omitted.

Popularity itself is an often overlooked feature. When trying to sell the use of a version control system to others (peers, coworkers, bosses, etc. Or more difficult if you are trying to make an institutional change) you are already in a better position with git than you are with mercurial. If all mercurial is bringing to the table is being a bit more pleasant, I am still going to pass over it for that reason.

I can sympathize with the difficulty of persuading others. But consider this not-so-far-fetched example: if you're choosing an open-source database, you would choose MySQL based on popularity instead of PostgreSQL, which I would argue in most cases is a mistake--which you'll likely have to live with for years.

In addition to the points that solutionyogi raises, I don't think that is a very good comparison when you consider the differences in commercial and private RDBMS', and the differences between commercial centralized VCS and open source DVCS.

DVCS (either mercurial or git) seems to be a much more exotic concept for people unfamiliar with DVCS than MySQL/PostgreSQL is to those only familiar with, say, Oracle RDBMS.

I'm not a DBA though, so maybe I am wildly wrong with that thought.

(Also this comparison maps back to the topic incorrectly, in that I obviously greatly prefer PostgreSQL in the comparison, but I greatly prefer git in the other scenario).

Re: Why did Git become so popular?

#104

I remember attending an OSCON session on git vs. Subversion back in 2006 or 2007. The presenter's thesis was basically that git was more efficient than subversion when it came to branching. Near the end he walked through the distributed nature of git. That was the second of third OSCON I attended, and I have never seen, nor have I seen since, that many utterly confused developers in a single room. At the time I thoug…

Hopefully, test driven development will be one of them. I don't know what will replace it, but some day we'll look back and say "I can'r believe we used to spend so much time writing so many tests"

Maybe, but the we'd need incredibly better tools than what we have today. Git was a vastly better tool, which enabled us to reshape the culture around how we managed code. Test-driven development is a culture that lacks git-level tools.

Re: Why did Git become so popular?

#105

Having used ClearCase, CVS, Subversion, TFS, Git and Mercurial, I would have to say it's because not enough people have tried Mercurial. I have no interest in Git, but I think people like GitHub (or maybe don't know about BitBucket)

My personal favorite is Bazaar, but Mercurial is good, too. I also heard very good opinions about darcs, but didn't try it yet. Mercurial has BitBucket and Bazaar has Launchpad, so they hardly 'loose' to git and GitHub here. There is but one thing that git does better (I'm forced to use git at work) - it's faster, or at least feels faster. Other than that, on the technical side, both Bazaar and Mercurial are I think…

What do you like about bazaar in contrast to mercurial or git?

Re: Why did Git become so popular?

#106

Earlier quoted context omitted.

That's not a fair comparison. Mercurial is better than git in certain aspects (mainly command line experience) but git by itself is a solid content tracker. It has an extremely simple data model and it's rock solid. As someone else said in this thread, git has no separate notion of 'branch', 'tag' like Mercurial. In a way, git is actually like PostgreSQL, a solid piece of software which you can trust.

It's more than just command line stuff; Google did an extensive comparison that more people should look at: http://code.google.com/p/support/wiki/DVCSAnalysis

That comparison is over 4 years old. Google code now supports git, and most of the arguments against git are either spurious ("git history isn't sacred!")[1] or have been improved since then (better windows support, smart http protocol, single user-visible binary, etc.).

[1] dvcs history locally should not be sacred, because rewriting experimental branches is necessary for clarity and to avoid polluting the main repository branches. dvcs history on a central repo can be made sacred with git by disabling non-ff commits and disabling deletes.

Re: Why did Git become so popular?

#109
post #29

Earlier quoted context omitted.

We assume ClearCase is the worst, right?

Assuming too much... People who conplain loudly about ClearCase most often never understood how it is supposed to work. Ok ok, you need an army of administrators to make it work but still far from being the worst. Sourcesafe?

I don't have any experience of knowledge of Sourcesafe, but it wasn't in the original list ;-)

Re: Why did Git become so popular?

#110

Earlier quoted context omitted.

Hopefully, test driven development will be one of them. I don't know what will replace it, but some day we'll look back and say "I can'r believe we used to spend so much time writing so many tests"

If you don't test it, how do you know it works?

It compiles.
Post reply on HN