Ever wondered how to exclude .svn files from a directory you want to zip? My colleague just showed me this command (thanks James!), which I record here for future reference:
zip myzipfile.zip -r mydirectory/ -x \*.svn\*
Yes, I know I could export from the repository:
svn export directory ~/svn-exports/new-directory
but it's useful to know another method.
Please note: the zip command is a Unix command so won't work on Windows, sorry... (Works on Mac though)
Add new comment