Array ( ) Why you should be using Subversion (and how to use it) - Seopher.com


Want to stay up to date? Then why not subscribe to the RSS feed?

Or subscribe by email
Reviews are now only $20 Want a product reviewed? Now they cost only $20! Not bad for a site with 1,000 visitors a day
book yours now before they're gone
Posted on Saturday 29th of March 2008 at 18:26 in Software

Why you should be using Subversion (and how to use it)

While in London the other day I met up with Dan Sharp, the publishing director of Lusso (a luxury lifestyle magazine) and director of SWR Media. While chatting about business we got onto the topic of how the magazine was backed up, I mentioned Subversion as a possibility but was met with a confused expression.

I figure lots of people are in this situation; doing lots of good work but not doing proper version management. This post is to offer a very brief insight into SVN and how it can save your bacon.

What is Subversion?
Subversion (SVN) is a version control system used to maintain current and historical versions of files, such as source code, web pages, documentation, images, etc. Basically it controls your versioning; it can take two files, analayse the differences and merge them together. It's excellent if you've got multiple people authoring the same file but equally powerful for just keeping track of your work.

So how is it useful to me?
How many times have you accidentily done something catastrophic to your work? Like a find-and-replace across an entire site that cannot be undone that went awry. Subversion removes that worry because you check your work out of the subversion repository (a file-dump stored elsewhere), make your changes and submit them back when you're happy. So any accidental yet disasterous events can be fixed by just pulling the file back out of SVN. Has your code stopped working and you don't know why? SVN allows you to compare your working copy and any previously submitted version of that file.

How do I use Subversion?
You install it on a web-server somewhere and get a Subversion client (TortoiseSVN is a good one). With the right information you can submit your work to that server and it'll be stored off-site. Any changes you make to your files are also stored when you've committed them, so you can compare and roll back your files to any previous version. Hopefully you can see why that would be helpful.

Getting Subversion
I personally recommend buying some hosting with Dreamhost because they offer Subversion by default on your hosting package; their web-panel allows you to configure things without having to get too techy. Although it's not actually terribly difficult to get SVN installed using the console it's just easier to have the GUI do it for you. TortoiseSVN is a good client to use to interact with the Subversion repository.

This was only a really quick introduction to the topic, just to raise awareness of an awesome system that most people don't seem to know about. If you're after more information then (yet again) Wikipedia to the rescue. You'd be surprised how often SVN can save your arse.

Enjoy this article? Why not subscribe to the full RSS feed?




Did you like this article?
If you liked this article then please show your support and give me a Digg. If you'd like to get in touch with me, email me at steven.york@seopher.com
Want to stay updated?
Sign up to RSS updates by email (or subscribe to the full RSS feed)

Enter your email address:

Comments

Showing most recent 5 of 5 comments [View all comments]

Found the URL to the SVN book I’m about to start poking into:

http://svnbook.red-bean.com/en/1.4/svn-book.pdf

Another developer recommended this; should be a good one.
Pete

Thanks for the article, I’ve been warming up to the idea of using some sort of version control lately. This article on Vitamin - Subversion for designers - may be of interest to your readers.
Alex

I use CVS on a daily basis, but I’m starting to use SVN more and more (as the natural successor).

It’s pretty easy to be fair.
Seopher who hasn’t logged in

I have an eBook on SVN that supposedly introduces its philosophies a bit. Once I get into work tomorrow and dig up that URL, I’ll share it here.
Pete

I currently use VSS, but I am starting to move into SVN also. Philosophically it’s pretty different than VSS, so I need to fall into a new mindset for it...
Pete


Add a comment





Prove you are real