开发者

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

This question already has answers here: 开发者_JAVA技巧 Closed 10 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜