Source Control with SVN

22 באפריל 2011

Since 2005 I've been mostly working with Microsoft Team Foundation Server to manage my source code. Before that I had the chance to work with Microsoft Source Safe and even a bit with WinCVS (for self projects)

These days I am back again working on a self project and need to share my source code with two other developers. All roads led me to SVN.
I was quite surprised how easily an SVN server can be installed and manipulated from Windows Explorer. So I decided to share this info with you.

There are several implementations of SVN server you can use. I decided to use VisualSVN Server since it is free and offers optional Visual Studio integration (payment is required).
VisualSVN can be installed from here. The installation process is quite easy (Next next next …) 






After installing VisualSVN server you need to create a new repository and a new user. The management UI can be found under: Start | Programs | VisualSVN | VisualSVN Server Manager


Now it's time to configure an SVN client application.

Once again, there is more than one open source/free implementation that you can use. I chose TortoiseSVN. You can download it from here





Let your machine restart and you are ready to go.

Open VisualSVN server management UI and right click your repository then select "Copy URL to clipboard"

Open Windows Explorer and locate the directory which contains the source code you would like to add to the SVN repository. Right click the directory and select "TortoiseSVN | Import". Paste the copied URL into the first relevant text box.


Select "Accept permanently"


Type the name of the user and password you created before and press "OK". 

You should note that the files were only copied and are not controller at the moment. To enjoy the power of SVN you need to checkout the repository to a different directory and start working from there.

Open Windows Explorer and locate the directory that you want to checkout the repository into it. Right click it and select "SVN Checkout …"


Select "OK". Repository content is copied to the selected directory and you can start edit your files inside Visual Studio. The copied files are not read-only so you don't need to issue any command inside Visual Studio.

When finish editing your code you can commit the changes by opening Windows Explorer, locate the checked-out directory, right click it and select "TortoiseSVN | Commit"


As you probably noticed there are many other commands offered by TortoiseSVN. Enjoy …

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



  1. yoramo26 באפריל 2011 ב 10:13

    I strongly recomend taking a look at perforce it is a comertial product but you can get it free if you have less then 4 users.

  2. nadav hury 3 באוגוסט 2011 ב 15:48

    U just gave me a solution for a problem I tried solving a month ago, thank u 😉