Delete all. svn files under Linux/mac

Source: Internet
Author: User
Tags svn

When using SVN to manage code, if you submit the original SVN managed project to the new SVN directory, you need to delete all the contents of the. svn file in the original folder, or the direct commit will cause the failure.

Note: It is a good idea to copy a new item first and then delete the. svn file under the backup folder. in order to avoid the original SVN project has uncommitted code, resulting in files can not be submitted, resulting in loss and so on.

The following method can be used to simply delete all the. svn files using the terminal.

1, first locate the directory file of your project, such as my project on the desktop under the Svnproject directory, you need to execute the following command at the terminal:

    1. ~ mac$ CD desktop/svnproject/

650) this.width=650; "Src=" http://img.blog.csdn.net/20131009105723000?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvzw51b2xh/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Southeast "/>

After execution, it is under the current Svnproject directory.

2, then execute the following command, you can delete all the. svn files under this directory

    1. svnproject mac$ find./-name ". SVN" | Xargs rm-rf

650) this.width=650; "src=" http://img.blog.csdn.net/20131009105821828 "/>

You can see that all the. svn files under this directory have been deleted, and the. svn files that contain subdirectories have also been deleted.

3. Next, you can use the following items in this directory to upload to SVN.


This article is from the "Granger" blog, make sure to keep this source http://345692135.blog.51cto.com/3869309/1794821

Delete all. svn files under Linux/mac

Related Article

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.