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.
- In this tutorial, we will register with the username
developer
Login
- Login using the username and password you used from above.
Create a Project and Enable Subversion
- Once logged in, click on the tab Your Projects
- Create a project:
- Under Create a New Project enter a name for your project. For this tutorial, lets call the project tutorial.
- Click on the Create Project button
- Enable Subversion:
- Once your project is created, click on the Source Control tab
- Click on the link Enable Source Control
- Give your Subversion repository a name. 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 URL on the Source Control tab of your project.
The URL is usually in the form http://svn<server number>.xp-dev.com/svn/<repository> (you can use https:// (SSL) if you have a paid account) - For this tutorial, our respository will be located at: http://svn.xp-dev.com/svn/tutorial-repo
- So, lets check out the repository into a folder called “tutorial”:
svn co http://svn.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.
Enjoy!
- 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,branchesandtrunkat 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.
