Advantages of git over SVN?

Add your suggestions for toolchain improvements here.
Post Reply
User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Advantages of git over SVN?

Post by vuurrobin » Mon Apr 16, 2012 10:18 pm

I have noticed that alot of project moves to git for version management. What are the advantages of git versus other version management systems like svn?

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Advantages of git over SVN?

Post by WinterMute » Tue Apr 17, 2012 12:29 am

Not quite sure what you mean by a lot of project moves, whether it's all the new git repos for devkitPro or projects in general switching to git.

git is better than svn for a whole bunch of reasons really.

It's a distributed VCS which means that the entire project history is stored in every clone - i.e. every developer with a clone of a git repository has access to the entire history whether or not they have an internet connection. This also means that there's no single point of failure - if for some horiible reason SF managed to lost the devkitPro repositories then we can just reinitialise a bare repository back up there and just push one of the clones to get all the history back.

Branching in git takes basically no time at all so it's really quick and easy to start a branch for testing that you can commit to without the worry of messing up the repository for anyone else. Your changes on that branch don't even have to be public because git maintains a local repository you commit to which then gets pushed to the remote repo later.

There's a really good article at http://thinkvitamin.com/code/why-you-sh ... on-to-git/
Scott Chacon wrote: You don’t have to mess up the mainline just to save your experimental ideas, you don’t have to be online to do it and most importantly, you can context switch almost instantly.
Help keep devkitPro toolchains free, Donate today

Personal Blog

User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: Advantages of git over SVN?

Post by vuurrobin » Tue Apr 17, 2012 8:25 am

Yes I meant projects in general.

Thanks for the comments and link, they were really helpfull.

mtheall
Posts: 210
Joined: Thu Feb 03, 2011 10:47 pm

Re: Advantages of git over SVN?

Post by mtheall » Sat Apr 21, 2012 4:22 pm

Git is pretty awesome if you're willing to take the time to become a git guru. I found it to have a bit of a learning curve though, and I was trying to use it like I used subversion, which is not really a good way to think about git.

User avatar
Izhido
Posts: 107
Joined: Fri Oct 19, 2007 10:57 pm
Location: Costa Rica
Contact:

Re: Advantages of git over SVN?

Post by Izhido » Tue Apr 24, 2012 4:10 pm

I know it is actually unrelated to SVN vs git, yet... I miss the really cool search & browse functionality that the SVN repository had, that somehow got lost in the git move :(

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests