{"id":507,"date":"2021-09-17T01:42:29","date_gmt":"2021-09-16T17:42:29","guid":{"rendered":"https:\/\/blog.cauchyschwarz.com\/?p=507"},"modified":"2021-09-17T01:45:31","modified_gmt":"2021-09-16T17:45:31","slug":"svn","status":"publish","type":"post","link":"https:\/\/blog.cauchyschwarz.com\/?p=507","title":{"rendered":"svn"},"content":{"rendered":"\n<p>\u4ee5\u4e3a\u7528\u4e0a\u4e86Git\u5c31\u4e0d\u4f1a\u518d\u548cSvn\u6253\u4ea4\u9053\uff0c\u4e0d\u5b58\u5728\u7684\u3002<\/p>\n\n\n\n<p>Svn\uff0cSubversion\uff0cCentralized Version Control System(CVCS)\u3002<\/p>\n\n\n\n<p>svn\u7684<a href=\"http:\/\/svnbook.red-bean.com\/en\/1.7\/svn-book.pdf\">\u5b98\u65b9\u6587\u6863<\/a>\uff0c458\u9875\uff0c\u4f30\u8ba1\u8fd9\u8f88\u5b50\u90fd\u770b\u4e0d\u5b8c\u4e86\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u8fd8\u662f\u8fd9\u7bc7<a href=\"http:\/\/www.thegeekstuff.com\/2011\/04\/svn-command-examples\/\">\u535a\u5ba2<\/a>\u6bd4\u8f83\u6709\u7528\uff0c10\u4e2a\u6700\u5e38\u7528\u7684svn\u547d\u4ee4\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69fc48589ac60\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69fc48589ac60\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#1_SVN_Checkout_Create_working_copy\" >1. SVN Checkout, Create working copy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#2_SVN_Commit_Save_changes_to_the_repository\" >2. SVN Commit, Save changes to the repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#3_SVN_List_Lists_directory_entries\" >3. SVN List, Lists directory entries<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#4_SVN_Add_Add_a_new_file_to_SVN_repository\" >4. SVN Add, Add a new file to SVN repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#5_SVN_Delete_Removing_a_file_from_repository\" >5. SVN Delete, Removing a file from repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#6_SVN_Diff_Display_the_difference\" >6. SVN Diff, Display the difference<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#7_SVN_Status_Status_of_the_working_copy\" >7. SVN Status, Status of the working copy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#8_SVN_Log_Display_log_message\" >8. SVN Log, Display log message<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#9_SVN_Move_Rename_file_or_directory\" >9. SVN Move, Rename file or directory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=507\/#10_SVN_Update_Update_the_working_copy\" >10. SVN Update, Update the working copy<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_SVN_Checkout_Create_working_copy\"><\/span>1. SVN Checkout, Create working copy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn checkout\/co URL PATH\n\n#\u4f8b\u5b50\nsvn co https:\/\/www.thegeekstuff.com\/project\/branches\/release\/migration\/data\/cfg \/home\/sasikala\/cfg\/<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_SVN_Commit_Save_changes_to_the_repository\"><\/span>2. SVN Commit, Save changes to the repository<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn commit -m \"log messages\"  svn-commands\n\n#\u4f8b\u5b50\nsvn commit -m \"Making the file empty\"<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_SVN_List_Lists_directory_entries\"><\/span>3. SVN List, Lists directory entries<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn list\n\n#\u4f8b\u5b50\nsvn list --verbose https:\/\/www.thegeekstuff.com\/project\/branches\/release\/migration\/data\/bin<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_SVN_Add_Add_a_new_file_to_SVN_repository\"><\/span>4. SVN Add, Add a new file to SVN repository<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn add thegeekstuff\nsvn commit -m \"Adding a file thegeekstuff\" thegeekstuff<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_SVN_Delete_Removing_a_file_from_repository\"><\/span>5. SVN Delete, Removing a file from repository<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn delete URL\n\n#\u4f8b\u5b50\nsvn delete thegeekstuff\nsvn commit -m \"Removing thegeekstuff file\" thegeekstuff<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_SVN_Diff_Display_the_difference\"><\/span>6. SVN Diff, Display the difference<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn diff filename\nsvn -r R1:R2 diff filename\n\n#\u4f8b\u5b50\nsvn diff thegeekstuff<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"7_SVN_Status_Status_of_the_working_copy\"><\/span>7. SVN Status, Status of the working copy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn status PATH\n\n#\u4f8b\u5b50\nsvn status \/home\/sasikala\/cfg<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"8_SVN_Log_Display_log_message\"><\/span>8. SVN Log, Display log message<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn log PATH\n\n#\u4f8b\u5b50\nsvn log thegeekstuff<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"9_SVN_Move_Rename_file_or_directory\"><\/span>9. SVN Move, Rename file or directory<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn move src dest\n\n#\u4f8b\u5b50\nsvn move thegeekstuff tgs<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"10_SVN_Update_Update_the_working_copy\"><\/span>10. SVN Update, Update the working copy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>svn update PATH\n\n#\u4f8b\u5b50\nsvn update<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e3a\u7528\u4e0a\u4e86Git\u5c31\u4e0d\u4f1a\u518d\u548cSvn\u6253\u4ea4\u9053\uff0c\u4e0d\u5b58\u5728\u7684\u3002 Svn\uff0cSubversion\uff0cCentralized Version Control System(CVCS)\u3002 svn\u7684\u5b98\u65b9\u6587\u6863\uff0c458\u9875\uff0c\u4f30\u8ba1\u8fd9&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[54,13],"class_list":["post-507","post","type-post","status-publish","format-standard","hentry","category-10","tag-svn","tag-13"],"_links":{"self":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=507"}],"version-history":[{"count":1,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/507\/revisions"}],"predecessor-version":[{"id":508,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/507\/revisions\/508"}],"wp:attachment":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}