Monday, June 13, 2011

How to delete .svn folder recursively on Linux or mac?

I came across a situatin where i needed to copy all the files ( svn commited ) from one project to another. but did not wanted to have .svn into new project, so looked for to delete all the .svn folder/files from new project set up.
I found the way to delete all .svn folder from my project folder in Linux.
To delete all .svn folder in Linux just follow the steps below:-

  • Start Terminal
  • change your current directory to your project folder (ex: /var/www/html/PROJECTNAME)
  • type [ check if the file list is proper to be sure :) ]
      find ./ -name ".svn"
  • type
    find ./ -name ".svn" | xargs rm -Rf
    and enter.
  • Done, all your .svn folder has been deleted.

Hope it helps

No comments:

Post a Comment