r/programming • • Nov 16 '13

What does SVN do better than git?

http://programmers.stackexchange.com/questions/111633/what-does-svn-do-better-than-git
599 Upvotes

494 comments sorted by

View all comments

255

u/weltraumMonster Nov 16 '13 edited Nov 16 '13

You can explain most people how to use it in much less time.

96

u/Decker87 Nov 16 '13

As an avid git user, I 100% agree and this is a significant cost. I spend at least a couple hours every week explaining how to use git just because I'm the local expert.

28

u/artee Nov 16 '13

This is true especially when you actually use additional features that Git provides over Svn. When you use a basic centralized workflow, it is not much more complex than svn, and still has the benefit of local querying/real "offline" support. For consultants who travel, you'd be amazed how often you can't get access to your own company VPN, even nowadays (e.g. while on the road, when working at customers with draconian network policies, etc.)

8

u/Fidodo Nov 16 '13

It took me a while to figure out the whole fast forward thing among others, and that's a feature you want to use correctly to keep the commit tree clean. So you can use git without knowing much, but you'll regularly find yourself in situations where your tree is broken, or messy, and you don't know how to fix it.

→ More replies (1)
→ More replies (5)

11

u/SublethalDose Nov 16 '13

I think there's another explanation. When I worked on teams using svn and cvs, the griping was pretty minimal, except for the handful of senior developers who were in charge of branching and merging. On teams using git, everybody gripes about the difficulty of branching and merging. It's because everybody is juggling multiple branches, rebasing, cleaning up their commit history, merging, and resolving conflicts! Not to mention handling differences between their local repo and the shared repo. Frankly, I think that's a big win for git. On the svn teams I worked on, the "local gurus" were the guys who could resolve merge conflicts (and use svndump.)

It's possible the pattern is unique to my experience, but it seems to point to git being actually easier in some way — perhaps easier to learn, since you're free to experiment in your local repository without worrying about screwing up other people's work.

→ More replies (3)

7

u/Moocat87 Nov 16 '13

I think there's a problem of learning-laziness (or lack of interest) sometimes. I have a couple of git trainees, and I know of another co-worker in the same situation. I was interested enough in git (and programming in general) to spend time learning off-hours, but many of the people I'm teaching git to only want to learn things about git from another person directly, not on their own.

Maybe many programmers don't grasp that VCS are just another tool in your toolbelt, not a "business requirement". EDIT: This is actually exactly the way I behaved when I was forced to learn ClearCase, though... I only learned about it when I had to. I saw it as a hassle, not a help.... because it was. When your version control gets out of your way and helps you to organize your work, then it's completely different. Maybe many programmers don't realize that value because of bad experiences with crappy VCS they were forced to use.

0

u/[deleted] Nov 16 '13

[deleted] — view deleted comment

8

u/[deleted] Nov 16 '13

What about mercurial then?

0

u/[deleted] Nov 16 '13

[deleted] — view deleted comment

9

u/rpgFANATIC Nov 17 '13

I always figured git was popular because of its author (Linus) and its killer app (github).

If you want the power of a DVCS, Mercurial is quite an able tool and in my experience it's far easier to pick up. Plus, when I want to just start a PoC, side-project, or something not relevant in the big SVN repo, spinning up a quick DVCS repo to start committing against locally is very helpful.

Give hginit a try and see if it piques your interest.

edit: to answer your quesiton... yes, you'll find yourself using far less switches in hg

→ More replies (16)

2

u/BlindTreeFrog Nov 17 '13

I had to give a presentation before I left my last job training up people on how to use git. Before the presentation i sent an email to everyone saying "Go read this web page. Chapters 1 through 6. It will make everything else easier." and liked them to http://git-scm.com/book

The presentation pretty much covered the basics of checking out and making changes to our current project. The last slide consisted of "Any questions? go read chapters 1 through 6 of that link again".

It feels like a cop out, but that seemed to be the best way to explain to people how to use it. If they couldn't handle that, other approaches were tried, but that seemed to work 80% of the time.

→ More replies (5)

8

u/ilikepugs Nov 16 '13

I think this is true from a software engineering perspective, but FWIW I got my non-technical wife on GitHub's GUI O SX client and she took right to it after about 10 minutes of explanation. She's using it to create and manage local repos (which are backed up to a time capsule with the rest of her stuff) for publishing projects.

14

u/x1a4 Nov 16 '13

I've had a hypothesis for awhile that the hardest part about learning Git is unlearning SVN/CVS. For someone that doesn't have to unlearn anything, it seems Git isn't nearly as painful to learn as so many complain it is.

I don't have enough data to prove or disprove this, though.

→ More replies (2)

3

u/Otterfan Nov 16 '13

For 5 years I taught a workshop on VCS to non-technical people. When we switched from SVN to git, the comprehension shot way up.

I suspect it's because git is so much faster that new learners can get in much more practice in the same amount of time.

→ More replies (4)

8

u/darchangel Nov 17 '13

In practice, this translates to real money. Below was my experience and I'm sure this isn't unique to me.

My company at the time used svn. "Jack" was given free range over new project xyz and he chose git. Jack is usually the only xyz developer but other people float in and out of the project when their specialty applies. For the next year this was the pattern: Jill goes to xyz but doesn't know git. She spends a lot of on-the-clock time learning git. She makes git mistakes which have to be fixed by Jack. Jill leaves xyz. Jill comes back to xyz months later and has to re-learn git and/or look up any git command beyond the basics. Bob goes to xyz but doesn't know git. [rinse, repeat] Jack leaves the company. Everyone enthusiastically ports xyz into svn and spends their time coding instead of fighting with version control.

2

u/Master-Ad-9922 May 13 '24

Seeing this post is the one time Git fans don't have anything to say. :)

→ More replies (1)

6

u/acdha Nov 17 '13

Is this really true? Most people are going to use the same add / commit process they do with SVN; most of the complexity comes from things like working with forks or rebasing which aren't even possible with SVN.

8

u/cowinabadplace Nov 17 '13

Every time I see comments like GP I think I'm taking crazy pills. I was up and running with git in a matter of minutes. I'm not the smartest guy around either, but comments like these make me feel like one.

It's like all those "This is what Big-O notation is" posts that are bizarrely popular in the programming blog community.

8

u/[deleted] Nov 17 '13

Many times people use SVN like FTP on steroids. They don't branch. They sync constantly. They ensure not to work on same things. When there is no merging every VCS is a piece of cake.

Now with git everyone is branching, commit often, merge branches locally back and forth, origin repo itself has a bunch of branches, people exchange feature branches for testing and so on.

tldr: SVN is easier because people don't use much of it.

3

u/lhamil64 Nov 18 '13

Anyone have suggestions for good places to learn git? I know the basics of what it can do, but every time I try using it I spend hours trying to figure out how to get everything setup and eventually just give up.

15

u/[deleted] Nov 16 '13

And this is a huge deal. I work in a group that develops NLP software, and that's complicated enough - no-one has desire to spend any time learning how to use version control.

→ More replies (2)

2

u/keepthepace Nov 17 '13

i don't get it... Most people will be functional if you say "checkout is called clone, commit is called commit and push, update is called pull".

7

u/[deleted] Nov 17 '13

Problem is, checkout is not clone. git checkout is svn checkout. git clone is svnsync.

git commit+push is not svn commit because, unlike in svn, your origin will be fucked up.

4

u/keepthepace Nov 18 '13

And the people who use svn only through commit and update do not care for these subtelties.

→ More replies (1)