开发者

How to delete .svn folders in my Source tree?

开发者 https://www.devze.com 2023-03-03 17:37 出处:网络
I have checked out a source from my svn into my Linux PC. In every sub-folder there is a .svn folder.Now i want to know how can i delete that folder(.svn) everywhere in my tree开发者_StackOverflow中文

I have checked out a source from my svn into my Linux PC. In every sub-folder there is a .svn folder.Now i want to know how can i delete that folder(.svn) everywhere in my tree开发者_StackOverflow中文版?


Assuming you are using Unix platform, and can use bash.

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


find . -type d -name '.svn' -exec rm -Rf {} \;


You can remove those directories manually but I suggest you just svn export:

  • http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.export.html


svn export will make a copy of you project with all the .svn folders removed


Why do you want to remove the .svn directories? I assume that you already know that they are used for storing svn information and should not be removed when svn is used on the local repository. If what you want is a clean copy of your repository excluding all the .svn directories use svn export: svn export documentation.

0

精彩评论

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