Sunday, August 22, 2010

copy svn working dir without svn hidden dirs and files

Use one of the following commands:

  • svn export PATH1 PATH2

  • rsync -r --exclude=.svn /home/user/progname/ /home/user/progname.copy

  • tar --exclude='.svn' -c -f - /path/to/sourcedir/* | (cd /path/to/destdir ; tar xfp -)
  • just copy the entire directory and then delete the Subversion stuff
    find /path/to/destdir -name '.svn' -exec rm -r {} \;
I found this info here.

No comments:

Post a Comment