Sunday, September 02, 2007

delete .svn folder of work copy

// You did a checkout when you really wanted to do an export.
// Now there are tons of .svn folders in your project, and you need them to go away.
// Shell scripting to the rescue.

// Credit: Zed Shaw, at the Mongrel mailing list.

find . -name ".svn" -exec rm -rf {} \;

find . -name ".svn" | xargs rm -Rf

No comments :