Checking out svn repository without .svn files

老子叫甜甜 提交于 2019-12-10 15:16:27

问题


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?


回答1:


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.




回答2:


Just check-out your project in a "work" folder somewhere on your dedicated server. There is no problem to do that.

Then just do an "svn export" as your are used to.



来源:https://stackoverflow.com/questions/4195665/checking-out-svn-repository-without-svn-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!