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?

blog comments powered by Disqus
Who is Seopher?

This is me. I'm a 26 year old web developer, blogger and entrepreneur from near London.

I've done work for people like Samsung, Vauxhall, Cadburys, Chevrolet, Center Parcs and TKMaxx.

I've been running this blog since 2006 and have reached more than 1.3 million readers, so feel free to say hi.

Seopher
Subscribe to the RSS Feed

Stay up to date with Seopher.com by subscribing to the RSS feed, either in your browser or subscribe via email using the form below

Updates by Email

By subscribing by email you’re also subscribing to the Seopher.com newsletter; a periodical email outlining new reviews, competitions and other subscriber-only content

  • Top Earning Team
  • dreamhost
  • buy 125x125 advert for $50 pcm
Want to give your product/website exposure?

Paying for a featured review is a great way to give your product, service or website exposure. For as little as $75 you can have a full review on the site forever.

Advertising Bundle! Review + Banner = $100

Buy a review and get a 125x125 advert half price. Your banner gets displayed on over 526 pages for a full month.