Local SVN repository, without Apache

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1484
Joined: Fri Aug 29, 2003 8:39 pm

Local SVN repository, without Apache

Post 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"
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply