Printable Version Printable Version

Setting up SVN under Windows OS

May 29th, 2009 | By admin | Category: SVN

«»

Setting up subversion (SVN)
I had a requirement of setting up the SVN server under Windows OS. After refering to some of the blogs on web I was able to make it working.
I have accumulated all those knowledge together in this blog.
Lets go in a step by step way ,
Step 1 :
Download the latest version of the SVN project from ,Download SVN.
Step 2 :
If you have downloaded the executable , install it (Recommended – Not to change the default directory setting while installation)
If you have downloaded the zip , please extract it under “C:\Program Files\Subversion\”
Step 3 :
Set the environmental variable PATH by appending the value “C:\Program Files\Subversion\bin” to the PATH variable value.
note – If you have used the executable , step -3 is not needed.
Step 4:
Now you have to create a directory to define the svn repositories. Create a directory “C:\Documents and Settings\Subversion”
Step 5:
Create svn repository ,
svnadmin create C:\Documents and Settings\Subversion
Step 6:
Browse to the folder , C:\Documents and Settings\Subversion\conf and edit the file , svnserve.conf
uncomment the following lines ,
[general]
anon-access = read
auth-access = write
password-db = passwd

Save and close the file.
Step 7:
Inside the same folder , edit the passwd file,add the users in the following way under [user] text,
USER_NAME =PASSWORD
(ex roger = rocksolidpwd)
note – you can un-comment the existing users specified in the file ,
[users]
harry = harryssecret
sally = sallyssecret

Step 8:
Open a command prompt.Start the SVN server by using ,
svnserve –daemon –root “C:\Documents and Settings\Subversion”
Step 9:
Open another command prompt. create a project by using,
svn mkdir svn://localhost/YOUR_PROJECT;
Step 10:
Now you will be prompted for the credentials ,
Provide the user id and password edited in the Step 7.
Here you go !! you are connected.
Step 11:
Test the listing by using ,
svn ls svn://localhost/

  • Share/Save/Bookmark

Pages: 1 2

Leave Comment