Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion: how to remove all .svn files recursively? [duplicate]

Possible Duplicate:
How do you remove Subversion control for a folder?

Is there such a tool?

I'm being bothered by this issue now again...

like image 851
mysql_go Avatar asked Mar 12 '11 11:03

mysql_go


People also ask

How do I delete a .SVN folder recursively?

The find command returns a list of all the subfolders matching “. svn”, and this is then piped to the rm command to recursively delete the directory. Running rm using the full path will remove the confirmation prompt, and the “rf” arguments will recursively delete any folder contents.

How do I remove all .SVN from a folder?

You can remove all dot files in a folder using find and rm . It searches for all dot files in the given folder, passed the results to rm which deletes it.

How do I delete a .SVN file?

To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…

Can we delete .SVN folder?

There is only one . svn folder, located in the base of the working copy. If you are using 1.7, then just deleting the . svn folder and its contents is an easy solution (regardless of using TortoiseSVN or command line tools).


1 Answers

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

Just noticed windows tag, so that probably won't help unless you use cygwin.

like image 111
river Avatar answered Oct 14 '22 04:10

river