Adventures In Tech

Icon

A technology blog by Ross Macduff

Setting up a Subversion repository in Linux

I set up Subversion repositories so infrequently that I always have to dig around on the web for the few steps that it takes. So here they are:

  1. You need to create the repository. I like to have one repository for each project (the pros and cons of this are discussed aplenty on the Internet).
    prompt> svnadmin create /path/to/repo
  2. Now the code you have already written has to be imported:
    prompt> svn import path/to/project file:///path/to/repo -m "Imported goods"
  3. Finally, you need to check out the code so you can start working on the versioned copy:
    prompt> svn co file:///path/to/repo

Filed under: Sysadmin

Leave a Reply