Checking out svn repository without .svn files

Pascal Klein picture Pascal Klein · Nov 16, 2010 · Viewed 8.4k times · Source

I have an svn repository on my dedicated server (Centos 5.5) at /var/svn/myRepository. I just want to copy those files into my production folder /var/www/myWebapp.

As far as I am understanding SVN I could only use svn export on my local project folder which has all the sourcecode and additional .svn files. But on my dedicated Server I just have the repository. How can I get the sourcecodefiles, without those .svn files out of that repository into my /var/www/myWeapp folder?

Answer

Pablo Santa Cruz picture Pablo Santa Cruz · Nov 16, 2010

No. You don't need a working copy to do a svn export.

Just do:

$ cd /var/www/myWebapp
$ svn export URL

You should get a clean copy of HEAD into /var/www/myWebapp.