How to work with Subversion

This blogpost will cover shortly how to setup and use a subversion installation.

Installation of Subversion

First we have to install Subversion. As my server is based on Debian/Ubuntu you can find a basic description here or here(!) and here. Of course, there are many, many, many more descriptions available on the internet.

I did:

$apt-get install subversion subversion-tools

Post installation steps

Finally we need to make repositories for this subversion installation. We need these repositories to actually store the files we want to use the versioning system on. We can do this using the following sequence of commands:

$su www-data -s /bin/bash
$svnadmin create /home/svn/repository-name

Let me shortly explain the actions:

  1. Become super user
  2. Login as the www-data using a shell
  3. Create the actual svn repository with the name repository-name and in the right folder

When the repository is used then we can start to commit/update/checkout/… the files. For this you can use several different programs or it might even be in your IDE. When connecting to Subversion then note that you have to use the full address as in:

This was it. Now let me finish by wishing you good luck with your versioning system and for questions you can always ask me!