Difference between revisions of "Setting up local SVN server"

From Notes_Wiki
(Created page with "=Setting up local SVN server= In case we want to maintain different revisions / version of a project on same system then we can setup local SVN. To create a SVN repository us...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=Setting up local SVN server=
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Subversion|Subversion (SVN)]] > [[Setting up local SVN server]]


In case we want to maintain different revisions / version of a project on same system then we can setup local SVN. To create a SVN repository use command:
In case we want to maintain different revisions / version of a project on same system then we can setup local SVN. To create a SVN repository use command:
Line 14: Line 14:


SVN also has other useful commands like '<tt>svn diff</tt>' which can be used to find difference between local copy and any previous revision of same file.
SVN also has other useful commands like '<tt>svn diff</tt>' which can be used to find difference between local copy and any previous revision of same file.
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Subversion|Subversion (SVN)]] > [[Setting up local SVN server]]

Latest revision as of 15:38, 24 August 2022

Home > CentOS > CentOS 6.x > Versioning tools > Subversion (SVN) > Setting up local SVN server

In case we want to maintain different revisions / version of a project on same system then we can setup local SVN. To create a SVN repository use command:

svnadmin create <project_name>

in folder where we want to create repository. This would create a folder with name <project_name> and create SVN repository related files inside it. We never do anything to this directory except checking out project from this directory for working.

To checkout project from a SVN repository on same system we can use:

svn checkout file:///<full_path_to_project_folder>

Please note the use of triple slash (///) as double slash in above command will not work properly. When we checkout a working copy of project, we again get folder with name <project_name> created in work folder. We can work on this folder and use commands like 'svn commit' and 'svn update' to commit our local changes to server or to get latest version of project from server respectively.

SVN also has other useful commands like 'svn diff' which can be used to find difference between local copy and any previous revision of same file.


Home > CentOS > CentOS 6.x > Versioning tools > Subversion (SVN) > Setting up local SVN server