RSS Feed for This PostCurrent Article

Setting Up Subversion on Windows

Here are the summarized steps of setting up Subversion on Windows.

1. I used CollabNet Subversion for Windows. You can download it from

2. Run the installer. Subversion will be installed under C:\Program Files\CollabNet Subversion Server. The default Subversion repository is C:\svn_repository.

3. Point your browser to http://localhost. You should be able to see the following


4. Point your browser to http://localhost/svn. You see 403 Forbidden


5. Set up the SVN_EDITOR environment variable


6. “cd” to C:\svn_repository and run “svnadmin create repo”. This will create a repository called “repo”

cd c:\svn_repository
svnadmin create repo

7. Point your browser to http://localhost/svn/repo/. You should be able to see the repository now.


8. Edit svnserve.conf under C:\svn_repository\repo\conf and uncomment the following line

password-db = passwd

9. To allow anonymous access, uncomment the following lines in  svnserv.conf

anon-access = read
auth-access = write

10. Add user in passwd file in C:\svn_repository\repo\conf. Format is “<user name> = <password>”

### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.
# harry = harryssecret
# sally = sallyssecret
user1 =    mypassword

11. Alternatively you may need to open up Windows firewall

Before starting the server, the firewall must be notified that this particular port is going to be used. To enable this port in the Windows firewall, follow the instructions found here:

Note: svnserve.exe is the program name which needs to be added to the exceptions list. Alternatively, you can also use the port where you decide to run the server. By default, svnserve runs on 3690.

12. You can start Subversion as a Windows service or command line. I prefer to run it as Windows service


13. Create a Subversion project. Note you must use the repository name you created earlier

svn mkdir svn://localhost/repo/myproject

14. Notepad will be opened. Enter any description for your project, and exit Notepad


15. You’ll now be prompted for credentials. Enter the user name and password as required.

16. Run “svn list svn://localhost/repo” You should be able to see projects created under the repository.


Alternatively  you can point your browser to http://localhost/svn/repo


17. Download and install TortoiseSVN.

18. Checkout “myproject” from Subversion.


19.  Create your source files under the project folder. Then you can add and commit them.



It is done now. Enjoy !

Popularity: 2% [?]

Trackback URL

RSS Feed for This Post1 Comment(s)

  1. Tony | Jun 3, 2010 | Reply

    Useful post!!!

RSS Feed for This PostPost a Comment