blog.onlysimpler.com

A blog... only simpler.

Subversion - The 30 Second Guide - 23 October 2006

Setting up a Subversion repository is one of those things that I can never seem to remember how to do. I guess that's because you tend to do it once at the start of a project and it might be 6 months before you need to do it again. And by that time you've forgotten how to do it and need to go search through the docs.

So here is a very quick guide to setting up a new repository.

  1. Create a new repository.
    $ svnadmin create path_to_repository
  2. Modify the svnserve.conf and passwd files.
  3. Create new project directory.
    $ svn mkdir svn://path/to/repo/myproject
  4. Create a sub-directory for the trunk (you can create branches and tags later if necessary).
    $ svn mkdir svn://path/to/repo/myproject/trunk
  5. Checkout the project and start working.
    $ svn checkout svn://localhost/repository/project/trunk

link