Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking out svn repository without .svn files

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?

like image 249
Pascal Klein Avatar asked Nov 16 '10 15:11

Pascal Klein


People also ask

How do I checkout a svn repository?

Check out files from Subversion repositoryIn the Get from Version Control dialog, click Add Repository Location and specify the repository URL. Click Check Out. In the dialog that opens, specify the destination directory where the local copy of the repository files will be created, and click OK.

Can I delete .svn folder?

There is only one . svn folder, located in the base of the working copy. If you are using 1.7, then just deleting the . svn folder and its contents is an easy solution (regardless of using TortoiseSVN or command line tools).

Where is .svn folder?

the only . svn folder is in the root folder now, and this contains all of the info for the checkout. You should now be able to simply copy the folder and check it in.


1 Answers

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.

like image 170
Pablo Santa Cruz Avatar answered Sep 30 '22 06:09

Pablo Santa Cruz