howto set up local svn repository


Set up a local svn repository to store some code

Install subversion

yum install subversion

Repository Setup

We will set up a path to store the repositories then create the initial repository

mkdir -p /usr/local/svn
svnadmin create /usr/local/svn/repo1

Initial Import of content to the repository


svn import /path/to/files/to_checkin file:///usr/local/svn/repo1/trunk -m "first Import"


svn import project file:///d:/repository_name/project -m "First Import"


svn import project http://host_name/svn_dir/repository_name/project -m "First Import"

Accessing your svn repository remotely

If you aren’t using apache you’ll need to use svn + ssh

On remote machine

1. Set up passwordless ssh access to your hosts server
2. Create some local aliases to make everything easier

SVNROOT="svn+ssh://[email protected]/usr/local/svn/"
export SVNROOT

3. Perform the checkout


Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>