Page 1 of 1

Local SVN repository, without Apache

Posted: Mon Nov 24, 2008 12:10 pm
by ^rooker
In order to keep track of some local files I'm working on, I wanted to have a local SVN repository, but without the overhead of installing, configuring and running an Apache webserver.

Thanks to an article called "Creating local SVN Repository", I finally know how.

Here are the basic commands you'll need:
1) Create a folder and make it a repository for "project1":

Code: Select all

$ mkdir -p /home/user/repos/svn
$ cd ~/repos/svn
$ svnadmin create project1
2) Import your initial set of files:

Code: Select all

$ svn import /home/user/project1 file:///home/user/repos/svn/project1/trunk -m "Initial import of project1"
-- Note: From here on, you can use a graphical SVN client to work with --

3) Checkout your working copy (you don't work on the original):

Code: Select all

$ svn co file:///home/user/repos/svn/project1/trunk /home/user/project1_work
4) commit files and leave a log message:

Code: Select all

$ svn commit -m "Some log message"