52

While making myself familiar with Git I see questions with thousands of upvotes, which is much more than I previously saw on Stack Overflow, e.g.

Compare that to the highest voted SVN question How to migrate SVN repository to a Git repository (1200 votes, 680 stars), which might only have so many upvotes because it is Git related.

I was wondering why this is the case and I'm uncertain what reasons contribute to such a demand.

I currently see the following reasons:

  • Git is very popular on Linux, through GitHub and is also used companies. It's the tremendous amount of users that explain the high interest.
  • I personally find Git pretty puzzling. It's not so self explaining. If thousands of other users have similar problems understanding Git, we could conclude that the concept or implementation is crappy and there might be an easier way.
  • Git benefits from the timely presence of Stack Overflow. Other tools have been there before Stack Overflow became popular and questions have been answered on different platforms.

Are there other reasons that I'm not aware of? How's the relationship between the above reasons, which one weighs more?

22
  • 7
    Another interesting thing to note aswell trends.google.com/trends/…
    – garfbradaz
    Commented Jul 5, 2017 at 8:16
  • 31
    I'm guessing it's a combination of your first reason - the overall high popularity of git - and the fact that all of those linked question essentially come down to "I've made a mistake (commited too quickly, added the wrong stuff...) - how do I fix it?". These aren't scenarios that happen regularly so it's probable that you've forgotten how exactly to go about it and additionally - even if you're 90% sure how to do it - since you're trying to fix a mistake you'll probably want to really make sure you don't accidentally make another mistake as well that ends up making everything worse.
    – Keiwan
    Commented Jul 5, 2017 at 8:38
  • 52
    It's because of the overwhelming relief and gratitude at finding a correct answer for whichever git problem they've blundered into this time. I use git command line daily and know it well, but would still upvote those questions thousands of times if I could.
    – JK.
    Commented Jul 5, 2017 at 8:44
  • @garfbradaz that's an interesting graph? Any clue on why China is still more supportive of SVN?
    – fedorqui
    Commented Jul 5, 2017 at 9:37
  • 2
    @Keiwan of course for most other technologies covered by SO the answer to "I've made a mistake, how do I fix it" is "just roll back to an earlier commit in git" :D
    – Jon Hanna
    Commented Jul 5, 2017 at 10:49
  • 4
    @fedorqui Or indeed, why does anyone have any interest in SVN at all...? Commented Jul 5, 2017 at 10:59
  • 4
    @Keiwan "I've made a mistake [...]. These aren't scenarios that happen regularly" - sounds like Linus' main design flaw with Git: users aren't perfect despite what he thinks, and programmers are users after all.
    – CodeCaster
    Commented Jul 5, 2017 at 12:11
  • 3
    It's probably also because many visitors to questions in language tags are one-time visitors that come from Google but don't have an account. Those are new developers or people who don't write code for a living. They don't know how to vote, or don't want to make an account. But in order to have a git problem, you need to be using git. Lots of new devs don't use version control, so we can assume that you're already at least a bit experienced. For those, the likelihood to have an SO account is way higher. Those who do, vote on the answers, and that yields more votes.
    – simbabque
    Commented Jul 5, 2017 at 12:15
  • 5
    For me it all boils down to option #2 you give. 'git' had (sometimes sill has) a lot of unclarity in how to do things, inconsistency and doing things comparable, but quite unlike, every other (D)VCS.
    – Anthon
    Commented Jul 5, 2017 at 12:56
  • 4
    Now watch as this meta post gets thousands of upvotes... Commented Jul 5, 2017 at 16:46
  • 3
    Pretty much entirely popularity would be my guess. I have just as much trouble with every VCS, but don’t mind because I never need to use them…
    – Ry- Mod
    Commented Jul 5, 2017 at 16:52
  • 1
    And in these cases is that I remember why I'll always prefer TFS vs GIT. Needing a CLI for a simple sync is beyond ridiculous. (And I have used GIT in the past) Commented Jul 5, 2017 at 19:15
  • 2
    Could also be that Git is less intuitive than its counterparts, hence more confusion and more hits in these questions. I, for one, had to google much more Git stuff than Mercurial stuff. Commented Jul 5, 2017 at 19:34
  • 1
    git's awesome, but it can be hard to get past the basic use cases. there's often a way though - using complex command line wizardry. and you are usually very relieved and happy to see someone else has spelled it out for you!!! that's why i tend to upvote any good git Q&A couple. very good and popular source control, but the API, while efficient and coherent, is complex. haha, @JK said the same already.
    – JL Peyret
    Commented Jul 5, 2017 at 21:50
  • 4
    This question may end up in a war between SVN and GIT users, having TFS users sit by the side enjoying a drink.
    – Mixxiphoid
    Commented Jul 6, 2017 at 8:00

4 Answers 4

80

Personally, I think it's a combination of

  • git's popularity (it is by far the most popular version control system nowadays)
  • git's cryptic commands (what I like to call user-unfriendlyness)

e.g. compare the following commands to throw away your local modifications to a given file:

   # svn
   svn revert filename

   # hg
   hg revert filename

   # git
   git checkout -- filename

The first two are easy to remember, whereas the third one quite often requires googling - therefore more hits on the git questions on SO, and therefore more upvotes.

Another example is hg incoming vs git <multiple commands that I am too lazy to look up right now>.

My point being: questions for other VCS don't get as many upvotes because there's no need for people to ask these questions / search for them in the first place.

16
  • 6
    It's not about unfriendlyness, it's a way more complex tools for purpose to do things more complex than it is possible with SVN. Which is why commands are more complex.
    – Walfrat
    Commented Jul 5, 2017 at 14:01
  • 39
    @Walfrat I disagree. hg fulfills the same purpose as git and is way more user-friendly. Commented Jul 5, 2017 at 14:23
  • 6
    @FrankSchmitt I in turn disagree. I like git way more, find its separaction of code, branches and the actual control it gives you is way better than hg. That is what user-friendly means for me, actual peace of mind in development. Commented Jul 5, 2017 at 17:24
  • 12
    By the way this answer is simply wrong (about the git command) it's really just git checkout filename. How is that harder to remember? I honestly think it's just about which tool you started with. Since I've been forced to use hg, I've been googling all the commands same I did when starting with git. Commented Jul 5, 2017 at 17:25
  • 7
    @Félix Gagnon-Grenier. I always use the -- version for revert. Probably learned it from SO. There are cases where -- is required, so git is not so simple after all: stackoverflow.com/questions/6561142/…
    – anneb
    Commented Jul 5, 2017 at 19:20
  • 2
    @anneb There are edge cases to hg revert as well, that make it "not so simple after all"... Most commands can be made more complicated when going after all cases, be it in mercurial or git. The other one were presenting the simplest case, there are no reason for the git one not to do it. Commented Jul 5, 2017 at 19:24
  • 4
    There is an important difference for --: git checkout <name> checks out the branch <name>. git checkout -- <name> checks out the index version of the file <name>.
    – anneb
    Commented Jul 5, 2017 at 19:37
  • 2
    Yes... do you often have files named feature/PRJ-237-reduce-clutter or branches named manifest.json? And, as I said, there are such important differences in the behavior of most functions... why you would stay stuck on the git one and not the other ones I don't understand. Commented Jul 5, 2017 at 19:40
  • 9
    Anyway, I don't care to fight over this, use whatever you prefer, my point is that saying that git checkout -- filename, or simply git checkout filename is more complicated to remember than hg revert filename is anything but fair, if not downright fallacious. The example about hg incoming is better, I guess, even though I actually never had a similar use case. Commented Jul 5, 2017 at 19:48
  • stackoverflow.com/questions/871/… This is a good post to compare and choose Commented Jul 5, 2017 at 20:37
  • 4
    @FrankSchmitt: Mercurial is a VCS. Git was designed more as a VCS workflow construction kit than a finished VCS. In the beginning, it was envisioned that Git would only provide the low-level infrastructure (roughly on the same level of abstraction as a filesystem, except with history). This view has changed, and Git now ships with lots of high-level commands and features as well, but the low-level is still exposed, and it allows third parties to develop their own VCS workflows and tools on top of Git, e.g. Git Flow, Git-LFS and co. As such, Git may look more complex, but generally, if you … Commented Jul 5, 2017 at 21:57
  • 3
    … only work at a high level of abstraction, Git, Mercurial, Bazaar, Fossil, Veracity, etc. have similar complexity, I find. In Mercurial the difference is more noticeable, because the low-level abstractions are not exposed to the casual user, they are only exposed as Python APIs, whereas in Git, the low-level abstractions are exposed as shell commands instead of APIs and thus "pollute" the namespace that is exposed to the casual user (binaries, man pages, etc.) Commented Jul 5, 2017 at 21:59
  • 5
    having gotten used to git (and having come from hg) hg revert is just wrong. What if I want to revert something 5 commits back? git revert does that. It's actually a universal revert. hg revert is arguably misnamed since it only deals with changes not yet checked in. I agree that hg was simpler than git but the workflow git encourages is far more powerful than hg's default workflow.
    – user128511
    Commented Jul 6, 2017 at 0:06
  • 2
    git checkout -- filename is also a bad example because git status reminds everybody that this is how to discard some changes in the working directory. And even thinking about such a revert without first looking at the status is a bit of a strange workflow. Commented Jul 6, 2017 at 17:32
  • 1
    @FélixGagnon-Grenier git checkout filename without -- might work, but git itself recommends adding the -- when you do a git status. Anyway, let's agree to disagree: for me, git's command line interface is quite confusing whereas obviously others find it straightforward. Commented Jul 7, 2017 at 13:07
62

Some programmers use C#, others Java, others Python. Almost all of them use git.

18
  • 9
    Simple answer, but honestly true. I think even if git was more user friendly, it'd still have huge number of upvotes on questions.
    – Goose
    Commented Jul 5, 2017 at 19:02
  • 3
    doesn't explain the difference with SVN though..
    – Nanne
    Commented Jul 5, 2017 at 19:16
  • 5
    Yes it explains well : there is about three or four GIT users for one S.V.N user right now in the world Commented Jul 5, 2017 at 20:13
  • 1
    @AntoinePelletier your statistic seem a bit off when compared to another question Commented Jul 5, 2017 at 20:27
  • @JGreenwell A bit off you say ? It could almost be sarcastic. But i don't know where this feeling comes from : I feel like everyone is just talking about GIT and everyone uses it, it's completly overwhelming, and then you showed me this link... Could it be S.V.N users are more subtile ? Commented Jul 5, 2017 at 20:35
  • 3
    @AntoinePelletier Or they just don't want the "old techys" free bashing. My company currently use SVN, and it has absolutely no need to move to git. SVN does what we want it to do, we know how to administer it and use it. I do use recent technologies and unless we have a very reason to move to git (like really need what git provide that svn don't) I won't recommand to move from it.
    – Walfrat
    Commented Jul 5, 2017 at 21:09
  • 1
    If you listen the net, you would feel the vital necessity to use the latest, yet not mature and stable technologies, Java is totally outdated, Javascript server-side rules, .... People just talk about what it's new and change more that what it's already there for a long time, even if it doesn't add any value.
    – Walfrat
    Commented Jul 5, 2017 at 21:10
  • 4
    @JGreenwell Just to point out, that question/answer refers to repositories not users. It also doesn't take into account whether those repositories are still active.
    – DBS
    Commented Jul 5, 2017 at 22:04
  • 1
    @Walfrat good luck finding good developers willing to work with SVN. When I'm interviewing and see a dev with no git experience I give a big minus. Devs want to learn the newer tech so that they value more on the job market. Commented Jul 6, 2017 at 8:10
  • 1
    @ClaudiuCreanga note that i already worked a little with git. I'm just saying that switching from an existing svn to git when there will be no added value is not worth. And I have yet to met a developer that refuse a job because of SVN... Furthermore, newer technologies aren't always values more on the jobs market. See medium.com/@ChallengeRocket/… AND techworm.net/2016/06/…
    – Walfrat
    Commented Jul 6, 2017 at 8:15
  • @Walfrat migrating to git is easy. I think it is a small price to pay to make your company more attractive to young devs. Commented Jul 6, 2017 at 8:42
  • 2
    "small" ? don't be so sure, forming everyone to git has a cost, and I can tell you that this won't be easy for some of our devs here. And I am young and I don't really like devs that are only attracted to something because it's new. That's how you end up with tons of project use tons of different technologies that none master.
    – Walfrat
    Commented Jul 6, 2017 at 9:13
  • 1
    @Walfrat you're absolutely right. For an individual the switch is "easy", just adopt a slightly different workflow and keep a cheat sheet of "how I did it in SVN and how I do it in git" commands. I made the switch in under a day. Switching over entire teams + projects + workstations however, that requires a bit more orchestration.
    – Gimby
    Commented Jul 6, 2017 at 15:18
  • @DBS That is entirely true, but those were the only statistics I could find (while searching with a headcold and only so much focus I admit). If you or someone else finds a better estimation of users (or at least active repositories) I would encourage you to combine the statistics into a new post. Commented Jul 6, 2017 at 16:18
  • 1
    @AntoinePelletier SVN users could be more "subtile" or (as was my case when using SVN over Git) they could just have more people knowledgeable about SVN. When I had a Git issue, I found my path was search official docs, search SO, then ask a question if not found, and finally ask a co-worker so I wasn't seen as not "knowing Git". When working with SVN it was search docs, search SO, then ask a co-worker cause it was just a tool and I would learn as I went (I also learned these systems faster this way). Note ClaudiuCreanga's attitude on Git as an example as it is the common one I've encountered. Commented Jul 6, 2017 at 16:38
24

Your second reason:

I personally find Git pretty puzzling. It's not so self explaining

has been documented in more than one academic study:

What's wrong with Git? A conceptual design analysis

Purposes, Concepts, Misfits, and a Redesign of Git

From the abstract of the first paper:

Despite its widespread adoption, Git puzzles even experienced developers and is not regarded as easy to use

The second paper explains the difficulties in git as "misfits" where "underlying concepts fail to meet their intended purpose" and includes an analysis of common StackOverflow questions that demonstrate these mismatches.

3
-21

the major user base for SVN are large companies who are resistant to adopting new technologies, where users are less free to browse stack overflow,

compared to git, which is widely used by looser smaller companies, and just about every hobbyist on the site, who have little to no restrictions to spend time on the site

5
  • 9
    Some statistics/citation would be great! I doubt that Apple or Google are "resistant to adopting new technologies". ;) Commented Jul 5, 2017 at 20:08
  • 2
    @FélixGagnon-Grenier there is a software-engineering.SO questions on the usage of Git over SVN. Commented Jul 5, 2017 at 20:28
  • 2
    @JGreenwell Interesting. Would you really say that this supports Austin's point that "the major user base for SVN are large companies who are resistant to adopting new technologies, where users are less free to browse stack overflow" however? Commented Jul 5, 2017 at 20:32
  • 1
    @FélixGagnon-Grenier absolutely they are, especially new technologies that they didn't themselves invent.
    – hobbs
    Commented Jul 5, 2017 at 23:27
  • @FélixGagnon-Grenier I started as a COBOL programmer in 1999 (actually started with the company in '98 as a tech and operator, but that was my first programmer job). In 2013 when finishing my first degree, I got part-time work in COBOL at a company that hadn't, and wasn't looking to, switched languages. So I would believe it but as a post I would also include some statistics which support those observations. Commented Jul 6, 2017 at 16:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .