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...
find . -name .svn -exec rm -rf {} \;
Just noticed windows tag, so that probably won't help unless you use cygwin.
List them:
find . -type f -name .svn
Delete them
find . -type f -name .svn -delete
And if they're actually directories, not files
find . -type d -name .svn -exec rm -rf {} \;
now here it is. Go to your project root directory and use this terminal command:
find . -name ".svn" -type d -exec rm -rf {} \;
This is built-in to svn using svn export
. This can operate in two modes, one which downloads and places a fresh copy of the server content in a new local folder, and the other which takes an existing local folder and creates a new local folder.
Example:
svn export c:\MyCheckout c:\MyCheckout2
After executing the above, c:\MyCheckout2
will contain your checkout but without any .svn
folders.
You can execute svn help export
to see more instructions.
精彩评论