Creating Your Own Repository

You can create your own repository that you can use to version your files. This section will show you how to set up a simple repository on your machine and then install the service that will let you remotely connect to the machine.

Please note: running Subversion on Windows using this method is really not secure. It's a simple way to get started using the tools, but you should ensure that you have good control over your network if you plan to use this method on sensitive projects. Consider reading one of the many great books on Subversion that show you how to set up a secure system using Linux if your projects need increased security, such as Pragmatic Version Control Using Subversion by Mike Mason (Pragmatic Bookshelf).

Creating a repository is relatively simple. You need to create a folder on your disk that will house the repository:

mkdir c:\repos
svnadmin create c:\repos\example

If all goes well, you should receive no error messages. This creates the folder c:\repos\example and places lots of other files in that folder.

We're going to create one repository that can hold many projects. You could create one repository for projects if you need more granular security but I want to keep this simple.

At this point you need to configure the access to the repository. Open the file c:\repos\example\conf\svnserve.conf with your favorite text editor and place this in the file, overwriting everything else:

[general] anon-access = none auth-access = write password-db ...

Get Rails on Windows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.