{"id":1057,"date":"2011-09-27T14:50:53","date_gmt":"2011-09-27T06:50:53","guid":{"rendered":"http:\/\/www.strongd.net\/?p=1057"},"modified":"2011-09-27T14:50:53","modified_gmt":"2011-09-27T06:50:53","slug":"%e6%b8%85%e9%99%a4%e6%89%80%e6%9c%89-svn%e7%9b%ae%e5%bd%95-linux-windows","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=1057","title":{"rendered":"\u6e05\u9664\u6240\u6709.svn\u76ee\u5f55 linux windows"},"content":{"rendered":"<p>\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u7684\u5f00\u6e90\u9879\u76ee\uff0c\u60f3\u628a\u5b83\u96c6\u6210\u5230\u81ea\u5df1\u7684\u7cfb\u7edf\u4e2d\uff0c\u9700\u8981\u5148\u628a\u91cc\u9762\u7684\u7248\u672c\u63a7\u5236\u6587\u4ef6\u5220\u9664\u6389\u3002<\/p>\n<p>\u8fd9\u91cc\u8f6c\u8f7d\u4e00\u4e0b\u7f51\u4e0a\u627e\u5230\u7684\u5220\u9664\u65b9\u6cd5\uff0c\u4ee5\u5907\u540e\u7528<\/p>\n<p><strong>\u4e00\u3001\u5728linux\u4e0b<\/strong><\/p>\n<p>\u5220\u9664\u8fd9\u4e9b\u76ee\u5f55\u662f\u5f88\u7b80\u5355\u7684\uff0c\u547d\u4ee4\u5982\u4e0b<br \/>\nfind . -type d -name &#8220;.svn&#8221;|xargs rm -rf<\/p>\n<p>\u6216\u8005<\/p>\n<p>find . -type d -iname &#8220;.svn&#8221; -exec rm -rf {} \\;<\/p>\n<p>\u5168\u90e8\u641e\u5b9a\u3002(http:\/\/tech.techweb.com.cn\/redirect.php?fid=26&amp;tid=205673&amp;goto=nextnewset)<\/p>\n<p><strong>\u4e8c\u3001\u5728windows\u4e0b\u7528\u4ee5\u4e0b\u6cd5\u5b50\uff1a<\/strong><\/p>\n<p>1\u3001\u5728\u9879\u76ee\u5e73\u7ea7\u7684\u76ee\u5f55\uff0c\u6267\u884cdos\u547d\u4ee4\uff1a<br \/>\nxcopy project_dir project_dir_1 \/s \/i<\/p>\n<p>2\u3001\u6216\u8005\u5728\u9879\u76ee\u6839\u76ee\u5f55\u6267\u884c\u4ee5\u4e0bdos\u547d\u4ee4<br \/>\nfor \/r . %%a in (.) do @if exist &#8220;%%a\\.svn&#8221; rd \/s \/q &#8220;%%a\\.svn&#8221;<\/p>\n<p>\u5176\u5b9e\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u53ef\u4ee5\u7528\u6765\u5e72\u5f88\u591a\u4e8b\u7684\uff0c\u6bd4\u5982\u628a\u4ee3\u7801\u4e2d\u7684.svn\u66ff\u6362\u4e3a\u4efb\u610f\u5176\u4ed6\u6587\u4ef6\u540d\u5e76\u5728\u786c\u76d8\u6839\u76ee\u5f55\u4e0b\u6267\u884c\uff0c\u5c31\u53ef\u4ee5\u4ece\u786c\u76d8\u4e0a\u5220\u9664\u6240\u6709\u7684\u8fd9\u4e2a\u6587\u4ef6\u5566\u3002<\/p>\n<p>3\u3001\u52a0\u6ce8\u518c\u8868<\/p>\n<p><a href=\"http:\/\/weblogs.asp.net\/jgalloway\/default.aspx\">Jon Galloway<\/a>\u63d0\u4f9b\u4e86\u4e00\u6bb5\u6ce8\u518c\u8868\u4ee3\u7801\uff0c\u53ef\u4ee5\u5c06\u201dDelete SVN Folders\u201d\u547d\u540d\u589e\u52a0\u5230\u8d44\u6e90\u7ba1\u7406\u5668\u7684\u53f3\u952e\u4e0a\uff0c\u8fd9\u6837\uff0c\u9f20\u6807\u70b9\u4e24\u4e0b\u5c31\u80fd\u628a\u9009\u4e2d\u76ee\u5f55\u4e0b\u7684\u6240\u6709.svn\u76ee\u5f55\u5e72\u6389\u4e86\u3002Works just great!<\/p>\n<p>\u4ee3\u7801\u4e3a\uff1a<\/p>\n<pre>Windows Registry Editor Version 5.00 \r\n\r\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Folder\\shell\\DeleteSVN]\r\n@=\"Delete SVN Folders\" \r\n\r\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Folder\\shell\\DeleteSVN\\command]\r\n@=\"cmd.exe \/c \\\"TITLE Removing SVN Folders in %1 &amp;&amp; COLOR 9A &amp;&amp; FOR \/r \\\"%1\\\" %%f IN (.svn) DO RD \/s \/q \\\"%%f\\\" \\\"\"<\/pre>\n<p>\u5c06\u8fd9\u6bb5\u4ee3\u7801\u4fdd\u5b58\u4e3a\u4e00\u4e2a.reg\u6587\u4ef6\uff0c\u53cc\u51fb\u786e\u8ba4\u5bfc\u5165\u6ce8\u518c\u8868\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u7684\u5f00\u6e90\u9879\u76ee\uff0c\u60f3\u628a\u5b83\u96c6\u6210\u5230\u81ea\u5df1\u7684\u7cfb\u7edf\u4e2d\uff0c\u9700\u8981\u5148\u628a\u91cc\u9762\u7684\u7248\u672c\u63a7\u5236\u6587\u4ef6\u5220\u9664\u6389\u3002 \u8fd9\u91cc\u8f6c\u8f7d\u4e00\u4e0b\u7f51\u4e0a\u627e\u5230\u7684\u5220\u9664\u65b9\u6cd5\uff0c\u4ee5\u5907\u540e\u7528 \u4e00\u3001\u5728linux\u4e0b \u5220\u9664\u8fd9\u4e9b\u76ee\u5f55\u662f\u5f88\u7b80\u5355\u7684\uff0c\u547d\u4ee4\u5982\u4e0b find . -type d -name &#8220;.svn&#8221;|xargs rm -rf \u6216\u8005 find . -type d -iname &#8220;.svn&#8221; -exec rm -rf {} \\; \u5168\u90e8\u641e\u5b9a\u3002(http:\/\/tech.techweb.com.cn\/redirect.php?fid=26&amp;tid=205673&amp;goto=nextnewset) \u4e8c\u3001\u5728windows\u4e0b\u7528\u4ee5\u4e0b\u6cd5\u5b50\uff1a 1\u3001\u5728\u9879\u76ee\u5e73\u7ea7\u7684\u76ee\u5f55\uff0c\u6267\u884cdos\u547d\u4ee4\uff1a xcopy project_dir project_dir_1 \/s \/i 2\u3001\u6216\u8005\u5728\u9879\u76ee\u6839\u76ee\u5f55\u6267\u884c\u4ee5\u4e0bdos\u547d\u4ee4 for \/r . %%a in (.) do @if exist &#8220;%%a\\.svn&#8221; rd \/s \/q &#8220;%%a\\.svn&#8221; \u5176\u5b9e\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u53ef\u4ee5\u7528\u6765\u5e72\u5f88\u591a\u4e8b\u7684\uff0c\u6bd4\u5982\u628a\u4ee3\u7801\u4e2d\u7684.svn\u66ff\u6362\u4e3a\u4efb\u610f\u5176\u4ed6\u6587\u4ef6\u540d\u5e76\u5728\u786c\u76d8\u6839\u76ee\u5f55\u4e0b\u6267\u884c\uff0c\u5c31\u53ef\u4ee5\u4ece\u786c\u76d8\u4e0a\u5220\u9664\u6240\u6709\u7684\u8fd9\u4e2a\u6587\u4ef6\u5566\u3002 3\u3001\u52a0\u6ce8\u518c\u8868 Jon Galloway\u63d0\u4f9b\u4e86\u4e00\u6bb5\u6ce8\u518c\u8868\u4ee3\u7801\uff0c\u53ef\u4ee5\u5c06\u201dDelete SVN Folders\u201d\u547d\u540d\u589e\u52a0\u5230\u8d44\u6e90\u7ba1\u7406\u5668\u7684\u53f3\u952e\u4e0a\uff0c\u8fd9\u6837\uff0c\u9f20\u6807\u70b9\u4e24\u4e0b\u5c31\u80fd\u628a\u9009\u4e2d\u76ee\u5f55\u4e0b\u7684\u6240\u6709.svn\u76ee\u5f55\u5e72\u6389\u4e86\u3002Works just great! &hellip; <a href=\"https:\/\/www.strongd.net\/?p=1057\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u6e05\u9664\u6240\u6709.svn\u76ee\u5f55 linux windows<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[177],"class_list":["post-1057","post","type-post","status-publish","format-standard","hentry","category-linux","tag-svn"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1057"}],"version-history":[{"count":2,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1057\/revisions"}],"predecessor-version":[{"id":1059,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/1057\/revisions\/1059"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}