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:
~ 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
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