If you don't know what is Subversion (SVN), here is a short description about it."Subversion (SVN) is a version control system initiated in 2000 by CollabNet Inc. It is used to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS)." - from Wikipedia
- Download the latest Subversion from its website which located at<brhttp://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100&expandFolder=8100&folderID=91 The direct link for this file is <brhttp://subversion.tigris.org/files/documents/15/45600/svn-win32-1.6.1.zip
- Unzip "svn-win32-1.6.1.zip" to "C:/svn" and your file structure should look like below:
- Go to "Start" > "Control Panel" > "System" to open System Properties.
- Browse to "Advanced" tab and click "Environment Variables".
- At the "System Variables" section, look and select for the "Path" variable and press "Edit".
- At the end of "Variable value", add in
- Press OK to close current window.
- Create a folder named "Repositories" at your C drive. This folder will act as file database where all your versioned files will be saved here.
- Go to "Start" > "Run". Insert "cmd" to open the command prompt. Insert "svnadmin create C:\Repositories" to create the versioning database.
- Now, we need to run out SVN as windows service. Go to "Start" > "Run" and insert "cmd" to run command prompt again. Copy the following command and enter:
sc create SVN binpath= "C:\svn\bin\svnserve.exe --service --root \"C:\Repositories\"" displayname= "Subversion Repository" depend= tcpip start= autoPlease make sure you have a space after the "=" symbol for each parameter. I spent an hour here because of the spaces.
- Go to "Start" > "Run". Insert "services.msc" to show windows services. Double click on the service called "Subversion Repository".
- Press "Start" button to start Subversion service.
- Your machine is now running as a SVN version control server.
- If your machine also running as a SVN client, you can download TortoiseSVN frhttp://tortoisesvn.tigris.org/.
- Once you have TortoiseSVN installed, you can access your repositories by browsing "svn://localhost/" at your Repository Browser.
- If your SVN server and client is on differece machine, you can access remote repositories by IP address. Example: "svn://192.168.1.221/".
- If you need to access your repositories over the internet, please make sure you have done the port forwarding to SVN server machine on port 3690 (default). You need this step when your SVN server is behind a firewall or router.
- If you need to set permission for your SVN server, you can do the following steps.
a. Open "C:\Repositories\conf\svnserve.conf" with a text editor.
b. Change the following lines:
# anon-access = read
anon-access = none# auth-access = write to
auth-access = write# password-db = passwd to
password-db = passwdc. Open "C:\Repositories\conf\passwd" with a text editor. Add in users line by line using the format
= . Example: admin=password123