Import a Local Project into a Subversion (SVN) Repository

We have been migrating from our VSS repository to Subversion (SVN) over the last year or so. We finally have all our active projects in SVN with a hosted provider and we love working with SVN. The system is well devised and architected and we are very productive with the client tools. VSS never caused us too many problems and we were very successful with it but it was time to move once Microsoft dumped support for it.

One of the things I always struggle with in SVN is how to put my local project that I’ve started into an SVN repository. I guess that’s the product of 10+ years working with VSS! VSS only required one step to hook it up to your file system and project but SVN doesn’t work quite the same way. When I need to import a local project into SVN, I end up searching the internet and finding a solution but sometimes it takes a while and I have a couple of false starts.

I am sharing a very slim approach to putting a project on your local file system into an SVN repository and hooking up SVN to work with it. This is the easiest way I’ve found to do this and feel free to comment with other ideas.

  1. After you have your project going locally and you want to import it into SVN, simply run the SVN import command (svn import) from the command line or your SVN client. This takes all the project files and, obviously enough, imports them into the repository.
  2. Step 2 is the step that I forget because with VSS you’re basically done now. SVN requires you to check out your project to set up the proper association between your local file system and the repository. Just use svn checkout to check out the project you just checked in and your SVN associations will be hooked up and ready to go.

Other SVN Resources

There are tons of great SVN resources on the web and the two below really help you get going with SVN project management.

Comments are closed.

Sign in
classic
Forgot password?
×
Sign up

(*) Required fields

I agree with OptimaSales Terms & Privacy Policy

×