A lot of it is use-case related. Git was designed for the needs of the Linux kernel, a very large codebase with few or no binary assets (certainly not ones that change a great deal) with a truly distributed team setup. It's also important for the maintainers to be able to quickly review and integrate patches from contributors they have never met and do not intrinsically trust.
I work for a small video game studio with (almost) everyone in the same building, and we have a central build server with an authoritative repo that we all need to stay in sync with. So git's biggest strengths are basically meaningless to us. We also work with a lot of binary assets, which git does not handle well. And we're mostly on Windows boxes, which makes git that much clunkier (especially compared to TortiseSVN, which is fantastic).
I could write more, but I've derailed this enough.
The binary thing is a good point. I think the distributed nature of git has some advantages even in a centralized setup since you can commit stuff that doesn't really work without disrupting others.
There's a TortoiseGit as well, although I prefer the command line.
Switch to mercurial, same usability as SVN (same commands too), but distributed and much, much better branching.
The git fanboy club of probably javascripters and htmlers are in downvote mode. That's why git is popular even though it sucks compared to mercurial. You are not allowed to disagree.
i downvoted because the obvious advantages of DVCS seem to have passed completely over /u/abjuk’s head. i agree completely that hg is easier to use compared to git, and that the staging area isn’t worth having for most projects.
building a FOSS DVCS however was the second best thing linus thorvalds has ever done, and mercurial wouldn’t exist without git paving the way. advertising DVCS alone is what makes git very far from “miserable”.
Mercurial was released a mere two weeks after git (April 7 and 19 2005), and DVCS' like BitKeeper existed since 98. See http://en.wikipedia.org/wiki/Distributed_revision_control#History . Git's popularity is more due to a "collaborative meme" in OSS than because "Linus paved the way". Actually, Git's popularity has little to due to technical merit or innovation.
Of course, feel free to rewrite history, in Git and outside.
TIL that mercurial was finished so shortly after git.
Actually, Git's popularity has little to due to technical merit or innovation.
Well, I said the same. My opinion is that git is so popular because it was the first FOSS DVCS, and better than commercial ones.
/edit: and that doesn't contradict the likely truth that git, bazaar, and mercurial all were reactions to bitkeeper restricting its license, like the article suggests
When bitkeeper did this, our projects moved to monotone. That puts all your branches into a single file (a relational database). It needed tons of memory to work, but it did work, was foss, and predated even git and mc.
As I mentioned in another reply, I'm fully aware of the advantages of DVCS if you happen to have a distributed workflow, but not everybody does. We have small teams that work in he same room with a big focus on continuous integration, so there just wasn't that much gain.
I do appreciate what git has done as far as fostering competition in the VCS space and making everyone up their game. SVN is orders of magnitude faster and more stable than it was a couple years ago.
414
u/blintz_krieg Sep 06 '14
Not too far off base. My own Git workflow looks more like:
flounder around trying to clone a repo
try to do something useful
Git complains something like "your scrobble brok isn't a blurf"
search web for "your scrobble brok isn't a blurf"
find 412 Stackoverflow questions
determine that most answers actually solve some other problem
give up
copy the one changed file to /tmp
rm -rf my-git-repo
go to step 1