KP Solutions

Solutions for Day to Day Technical Problems

How to create SVN repository?

| 0 comments

This post will help you create a new SVN repository and it assumes you have the SVN installed & configured on your computer/server.

To create the repository for first time, issue the following command

svnadmin create –fs-type fsfs /var/www/subversion/kpsolution

Then to import your code for first time, go to your base directory of the source tree and then issue the following command

svn import -m “Initial Import” . file:///var/www/subversion/kpsolution/

Now, you have imported your source code into the repository and then use the SVN GUI to checkin/checkout the changes.

For more detailed instruction on setting up the svn, see “http://www.rockfloat.com/howto/gentoo-subversion.html”