The easiest way to delete the. SVN folder

Source: Internet
Author: User

Today, I want to repeat some of the openSource codeBut it is a folder with the. SVN directory, so you want to restore the normal folder without SVN information.

Find such a script from Aw's blog, which references a registry script of Jon Galloway.

The method is as follows:

Create a text file named kill-svn-folders.reg (extension changed from TXT to Reg) with the following content:

 Windows Registry Editor Version  5.00  

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Classes \ Folder \ shell \ deletesvn]
@ = " Delete SVN folders "

[HKEY_LOCAL_MACHINE \ SOFTWARE \ Classes \ Folder \ shell \ deletesvn \ command]
@ = " Cmd.exe/C \ " Title removing SVN folders In % 1 && Color 9A && For / R \ " % 1 \ " % F In (. SVN) Do Rd / S / Q \ " % F \ " \ ""

After saving the file, double-click the reg file. After successful, right-click on each folder and there will be a "delete SVN Folders" option. After clicking it, You can delete all. SVN files under this file.

What should I do in Linux? There are methods to display the results from Google,

Linux is as follows (from http://tech.techweb.com.cn/redirect.php? FID = 26 & tid = 205673 & goto = nextnewset)

When the SVN version control system is used, each directory will have one. SVN directory exists. After development, you usually need to delete these directories when delivering products or uploading them to the server. In fact, it is very easy to delete these directories in Linux. The command is as follows:

Find.-Type D-Name". SVN"|Xargs RM-RF&Y:]*P1 L. S5 ^$P

References

From aw)

Delete all. SVN Directories

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.