XP-Dev.com Documentation

Subversion Tutorial

Create an Account

Register with XP-Dev.com. The username and password that you've used to create an account will be your Subversion login credentials - these are case sensitive.

Create a Project and Create a Subversion Repository

Once you've created your account, click on your dashboard's Projects tab. You can always login back again if you were logged out.

Create a project by clicking on Create a New Project. Give the project a name and then click on the Create Project button.

Once your project is created, click on the Repository tab, followed by clicking on Create a New Repository.

Give your repository a name, and set the type of repository to Subversion. For this tutorial, lets call it tutorial-repo. Click on the Save button.

Checkout your repository

You can use either one of the command line Subversion clients suitable for your operating system, or a graphical frontend like TortoiseSVN. For this tutorial, we'll use the command line Subversion client.

Your Subversion repository URL will be displayed next to the field URLs on your repository page (accessed via your project's Repository tab).

The URL is usually in the form https://xp-dev.com/svn/<repository>

For this tutorial, our respository will be located at: https://xp-dev.com/svn/tutorial-repo

So, lets check out the repository into a folder called tutorial:

svn co https://xp-dev.com/svn/tutorial-repo tutorial

If you're asked to provide a username and password, just supply the one you registered in first step above.


Now that you've checked out a fresh subversion repository, you're free to manipulate it in whichever way thats suitable to you. All new repositories are empty, in the sense that there are no directories or files in them at all.

The usual "norm" is to create 3 top-level directories called tags, branches and trunk at the highest level. But its really up to you! It is your repository, and you're free to use it in anyway you like.

Further Reading

If you're new to Subversion, it might be worth spending a little time running through some tutorials. There are a number of tutorials that can be searched on Google.

If you need a concise reference book for Subversion, we highly recommend the free, online book Version Control with Subversion.

If you need any help, please raise a support inquiry.

Feel free to contact us if you need any assistance.