linux:subversion

Subversion

Subversion is another version control system like CVS, GIT etc. They all differ in use and their own advantages and disvantages.

Personally I prefer subversion over cvs. I have no experience with GIT or other version systems.

Create your repository

First SSH to the server you wish to create your repository on.

$ ssh mikkel@notfound.dk

Then create the repository

$ cd /group
$ svnadmin create myrepository

Checkout

To checkout to your local computer.

$ svn checkout ssh mikkel@notfound.dk:/group/myrepository myrep

Add a file

nex to add a file, cd into myrep

$ touch myfile
$ svn add myfile
$ svn commit

Update

If you would like to update your repository, to ensure everything is checked out with the latest commits

$ svn update

Test

If you would like to test it the above, delete the reposity and do this again.

$ svn checkout ssh mikkel@notfound.dk:/group/myrepository myrep

Multiple user setup

For multiple users each user need to add umask 002 in his ~/.bashrc and the users need to have a sharing group.

Please refer to this quick guide for help on the subject svn multi users