Fork me on GitHub

Using Subversion (svn) locally ...

written on April 18, 2008

It does makes sense using Subversion locally even for small projects, because later it can be easily exported and imported into Sourceforge, Google Code for instance.

On Windows this can be done fairly easy with TortoiseSVN, under Linux there are also a bunch of GUI svn clients, my favorite one is KDESVN, but you can always fire up a terminal and use "svn" ...

We can create a repository with the following command:

svnadmin create /home/user/svn_repo

Now let's import some "initial" content into with the following command:

svn import /home/user/projects/krad_proj file:///home/user/svn_repo -m 'initial import of krad_proj'

We don't work right in the repository so let's make another directory and get a copy of the project from the newly create repository with the following command:

svn checkout file:///home/user/svn_repo/krad_proj

So this way we can alter our "copy" and then just commit the changes, all locally without any server or exposing our system in any way, which is great.

For more commands, information feel free to visit http://subversion.tigris.org/ .

May the source be with you, and good night!