My Science Is Better

19Jan/100

Remove .svn folders recursively

I know that you have to use svn export in order to get a copy of the repo without the .svn folders inside, but sometimes you have to work with what you have, a checkout of a repo with .svn folders. And you want them removed.

After googling a bit i found a great way to recursively remove .svn folders. Just type the following while in the root of your checkout:

rm -rf `find . -type d -name .svn`

This tip was found on http://www.anyexample.com/linux_bsd/bash/recursively_delete__svn_directories.xml

Tagged as: , , No Comments
22Dec/091

SVN Ignore all files inside a folder

If you want to ignore certain file types inside a folder on SVN it's pretty easy:

svn propset svn:ignore "*.tgz" backup

It's a bit more complicated if you want to ignore everything inside a folder (be it files or folders). If you have a structure as the following:

/public/media
/public/media/member
/public/media/member/artist
/public/media/member/fan
/public/media/member/label

and you want to ignore everything inside public/media, just do:

svn propset svn:ignore "*" public/media/
Tagged as: , , 1 Comment
   

Tag Cloud

Categories

Archives

Akismet

Blogroll

Ads