{"id":186,"date":"2011-02-17T19:28:05","date_gmt":"2011-02-17T18:28:05","guid":{"rendered":"http:\/\/trigonakis.com\/blog\/?p=186"},"modified":"2011-02-17T19:36:46","modified_gmt":"2011-02-17T18:36:46","slug":"removing-the-svn-metadata-files-svn-in-linux","status":"publish","type":"post","link":"http:\/\/trigonakis.com\/blog\/2011\/02\/17\/removing-the-svn-metadata-files-svn-in-linux\/","title":{"rendered":"Removing the SVN metadata files (.svn\/) in Linux"},"content":{"rendered":"<p>If you ever want to remove a folder from SVN control (clean the folder by removing the <strong>.snv metadata folders<\/strong>) in Linux, you can simply run the following command:<\/p>\n<pre lang=\"bash\">rm -rf $(find path\/to\/the\/CORRECT\/folder -type d -name .svn)\r\n<\/pre>\n<p>where:<\/p>\n<ul>\n<li><code>rm -rf<\/code> is <strong>r<\/strong>e<strong>m<\/strong>ove <strong>r<\/strong>ecursive <strong>f<\/strong>orce. <em>Recursive<\/em> for deleting the directories and their contents recursively and <em>force<\/em> for no prompting (for example, for write protected files)<\/li>\n<li><code>$(..)<\/code> is the <em>command substitution<\/em>, that takes the output of a command and uses it as input for another<\/li>\n<li><code>find path\/to\/the\/CORRECT\/folder -type d -name .svn<\/code> is searching (recursively) for folders (<strong>d<\/strong> for <strong>d<\/strong>irectory) with the name <strong>.svn<\/strong><sup>1<\/sup> in the directory pointed by <code>path\/to\/the\/CORRECT\/folder<\/code> <\/li>\n<\/ul>\n<p><strong>Be careful<\/strong> to use the correct path, else you can remove the svn metada for the wrong folder! A good approach can be to execute the <code>find<\/code> command without the <code>rm<\/code>, check the output, and then proceed to the remove :-).<\/p>\n<p>&#8212;<\/p>\n<p><sup>1<\/sup>case sensitive, use <code>-<strong>i<\/strong>name<\/code> for insensitive<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you ever want to remove a folder from SVN control (clean the folder by removing the .snv metadata folders) in Linux, you can simply run the following command: rm -rf $(find path\/to\/the\/CORRECT\/folder -type d -name .svn) where: rm -rf is remove recursive force. Recursive for deleting the directories and their contents recursively and force [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[37],"tags":[10,9,38],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ouW6-30","_links":{"self":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/186"}],"collection":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/comments?post=186"}],"version-history":[{"count":14,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":195,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/186\/revisions\/195"}],"wp:attachment":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/media?parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/categories?post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/tags?post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}