{"id":5659,"date":"2017-02-09T16:54:22","date_gmt":"2017-02-09T08:54:22","guid":{"rendered":"https:\/\/sdeno.com\/?p=5659"},"modified":"2017-02-10T16:24:14","modified_gmt":"2017-02-10T08:24:14","slug":"mac%e4%bd%bf%e7%94%a8%e8%87%aa%e5%b8%a6svn%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=5659","title":{"rendered":"mac\u4f7f\u7528\u81ea\u5e26svn\u547d\u4ee4"},"content":{"rendered":"<figure class=\"mdx-lazyload-container\" style=\"max-width:190px\"><div style=\"padding-top:65.263157894737%\"><\/div><div class=\"mdx-img-loading-sp mdui-valign\"><div><div class=\"mdui-spinner\"><\/div><\/div><\/div><img width=\"190\" height=\"124\" class=\"alignnone size-full wp-image-5661 lazyload\" title=\"mac_svn\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"https:\/\/sdeno.com\/wp-content\/uploads\/2017\/02\/mac_svn.png\" alt=\"mac_svn\"><\/figure>\n<p><strong>svn\u5ba2\u6237\u7aef\u4f7f\u7528\uff1a<\/strong><\/p>\n<p><span style=\"color: #ff0000;\">1\uff0c<\/span>\u4ece\u670d\u52a1\u5668\u7aef\u4e0b\u8f7d\u4ee3\u7801\u5230\u5ba2\u6237\u7aef\u672c\u5730\uff08\u4e0b\u8f7d\uff09<\/p>\n<pre>svn checkout svn:\/\/localhost\/mycode --username=mj --password=123 \/Users\/apple\/Documents\/code<\/pre>\n<p>\u5c06\u670d\u52a1\u5668\u4e2dmycode\u4ed3\u5e93\u7684\u5185\u5bb9\u4e0b\u8f7d\u5230\/Users\/apple\/Documents\/code\u76ee\u5f55\u4e2d<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\">2\uff0c<\/span><span style=\"color: #000000;\">\u4ece\u672c\u5730\u5bfc\u5165\u4ee3\u7801\u5230\u670d\u52a1\u5668(\u7b2c\u4e00\u6b21\u521d\u59cb\u5316\u5bfc\u5165 \u4e0a\u4f20)<\/span><\/p>\n<pre>svn import \/Users\/apple\/Documents\/eclipse_workspace\/weibo svn:\/\/localhost\/mycode\/weibo --username=mj --password=123 -m \"\u521d\u59cb\u5316\u5bfc\u5165\"<\/pre>\n<p>\u5c06\/Users\/apple\/Documents\/eclipse_workspace\/weibo\u4e2d\u7684\u6240\u6709\u5185\u5bb9\uff0c\u4e0a\u4f20\u5230\u670d\u52a1\u5668mycode\u4ed3\u5e93\u7684weibo\u76ee\u5f55\u4e0b\uff0c\u540e\u9762\u53cc\u5f15\u53f7\u4e2d\u7684&#8221;\u521d\u59cb\u5316\u5bfc\u5165&#8221;\u662f\u6ce8\u91ca<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\">3\uff0c<\/span>\u4fee\u6539\u540e\u7684\u4ee3\u7801\u4e0a\u4f20\u5230\u670d\u52a1\u5668(\u4e0a\u4f20\u4fee\u6539\u7684\u4ee3\u7801\u6216\u8005\u6dfb\u52a0\u7684\u4ee3\u7801)<\/p>\n<p>\u5728\u6b65\u9aa41\u4e2d\u5df2\u7ecf\u5c06\u670d\u52a1\u5668\u7aef\u7684\u4ee3\u7801\u90fd\u4e0b\u8f7d\u5230\/Users\/apple\/Documents\/code\u76ee\u5f55\u4e2d\uff0c\u73b0\u5728\u4fee\u6539\u4e0b\u91cc\u9762\u7684\u4e00\u4e9b\u4ee3\u7801\uff0c\u7136\u540e\u63d0\u4ea4\u8fd9\u4e9b\u4fee\u6539\u5230\u670d\u52a1\u5668<\/p>\n<p>\u4ec5\u4ec5\u53ea\u662f\u63d0\u4ea4\u4fee\u6539\u4ee3\u7801\uff1a<\/p>\n<p style=\"color: #000000;\">1&gt; \u6253\u5f00\u7ec8\u7aef\uff0c\u5148\u5b9a\u4f4d\u5230\/Users\/apple\/Documents\/code\u76ee\u5f55\uff0c\u8f93\u5165\uff1a<strong>cd\/Users\/apple\/Documents\/code<\/strong><\/p>\n<p style=\"color: #000000;\">2&gt; \u8f93\u5165\u63d0\u4ea4\u6307\u4ee4\uff1a<strong>svn commit -m &#8220;\u4fee\u6539\u4e86main.m\u6587\u4ef6&#8221;<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"color: #000000;\">\u5f80\u670d\u52a1\u5668\u63d0\u4ea4\u5168\u65b0\u7684\u6587\u4ef6\u5939\u5305\u62ec\u91cc\u9762\u5185\u5bb9\uff1a<\/p>\n<p style=\"color: #000000;\">1&gt;\u8981\u5b9a\u4f4d\u5230\u76f8\u5e94\u76ee\u5f55\uff0csvn add ceshi \u00a0 \uff08\u4f1a\u5c06ceshi\u76ee\u5f55\u548c\u5b83\u91cc\u9762\u5185\u5bb9\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e2d\uff09<\/p>\n<p style=\"color: #000000;\">2&gt; svn commit -m &#8220;xx&#8221;<\/p>\n<p>&nbsp;<br \/>\n<span style=\"color: #ff0000;\">4\uff0c<\/span>\u66f4\u65b0\u670d\u52a1\u5668\u7aef\u7684\u4ee3\u7801\u5230\u5ba2\u6237\u7aef\uff08\u4e0b\u8f7d\u66f4\u65b0\uff09<\/p>\n<p>\u8fd9\u4e2a\u5e94\u8be5\u662f\u6700\u7b80\u5355\u7684\u6307\u4ee4\u4e86\uff0c\u5728\u7ec8\u7aef\u4e2d\u5b9a\u4f4d\u5230\u5ba2\u6237\u7aef\u4ee3\u7801\u76ee\u5f55\u540e\uff0c\u6bd4\u5982\u4e0a\u9762\u7684\/Users\/apple\/Documents\/code\u76ee\u5f55\uff0c\u7136\u540e\u518d\u8f93\u5165\u6307\u4ee4\uff1a<\/p>\n<pre>svn update<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\">5.<\/span>\u81f3\u4e8esvn\u7684\u5176\u4ed6\u7528\u6cd5\uff0c\u53ef\u4ee5\u5728\u7ec8\u7aef\u8f93\u5165\uff1asvn help<\/p>\n<p>\u8fd9\u91cc\u5217\u51fa\u4e00\u5927\u5806svn\u6307\u4ee4\uff0c\u540e\u9762\u62ec\u53f7\u4e2d\u7684\u5185\u5bb9\u7684\u4e00\u822c\u4ee3\u8868\u7740\u6307\u4ee4\u7684\u7b80\u79f0\uff0c\u6bd4\u5982\u6211\u4eec\u53ef\u4ee5\u7528svn ci\u4ee3\u66ffsvn commit\uff0c\u7528svn co\u4ee3\u66ffsvn checkout<\/p>\n<p>\u4f8b\u5982\uff1a\u521b\u5efa\u540d\u79f0\u4e3awuhan\u7684\u76ee\u5f55\uff08\u540e\u9762\u8981\u6709-m \u6ce8\u91ca\u6ca1\u6709\u8fd8\u4e0d\u80fd\u6210\u529f\uff09<\/p>\n<pre>svn mkdir svn:\/\/192.168.88.253\/hhcf\/trunk\/02Design\/04html\/wuhan -m \"wuhan\"<\/pre>\n<p>&nbsp;<\/p>\n<p>\u4f8b\u5982\uff1a\u663e\u793a04html\u76ee\u5f55\u91cc\u9762\u7684\u6240\u6709\u5185\u5bb9<\/p>\n<pre>svn list svn:\/\/192.168.88.253\/hhcf\/trunk\/02Design\/04html\/<\/pre>\n<p>&nbsp;<\/p>\n<p>mac\u642d\u5efasvn\u670d\u52a1\u5668\u53ef\u4ee5\u53c2\u8003\uff1a<\/p>\n<p><a href=\"http:\/\/blog.csdn.net\/q199109106q\/article\/details\/8655204\" target=\"_blank\">http:\/\/blog.csdn.net\/q199109106q\/article\/details\/8655204<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\u5206\u5272\u7ebf<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"font-weight: bold; color: #232323;\">1\u3001\u5c06\u6587\u4ef6checkout\u5230\u672c\u5730\u76ee\u5f55<\/h3>\n<blockquote style=\"color: #232323;\"><p>svn checkout\u00a0path\uff08path\u662f\u670d\u52a1\u5668\u4e0a\u7684\u76ee\u5f55\uff09<br \/>\n\u4f8b\u5982\uff1asvn checkout svn:\/\/192.168.1.1\/pro\/domain<br \/>\n\u7b80\u5199\uff1asvn co<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">2\u3001\u5f80\u7248\u672c\u5e93\u4e2d\u6dfb\u52a0\u65b0\u7684\u6587\u4ef6<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn\u00a0add\u00a0file<br \/>\n\u4f8b\u5982\uff1asvn\u00a0add\u00a0test.php(\u6dfb\u52a0test.php)<br \/>\nsvn\u00a0add\u00a0*.php(\u6dfb\u52a0\u5f53\u524d\u76ee\u5f55\u4e0b\u6240\u6709\u7684php\u6587\u4ef6)<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">3\u3001\u5c06\u6539\u52a8\u7684\u6587\u4ef6\u63d0\u4ea4\u5230\u7248\u672c\u5e93<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn commit\u00a0-m\u00a0&#8220;LogMessage&#8221;\u00a0[-N]\u00a0[&#8211;no-unlock]\u00a0PATH(\u5982\u679c\u9009\u62e9\u4e86\u4fdd\u6301\u9501\uff0c\u5c31\u4f7f\u7528&#8211;no-unlock\u5f00\u5173)<br \/>\n\u4f8b\u5982\uff1asvn commit -m\u00a0&#8220;add test file for my test&#8221;\u00a0test.php<br \/>\n\u7b80\u5199\uff1asvn ci<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">4\u3001\u52a0\u9501\/\u89e3\u9501<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn lock\u00a0-m\u00a0&#8220;LockMessage&#8221;\u00a0[&#8211;force]\u00a0PATH<br \/>\n\u4f8b\u5982\uff1asvn lock -m\u00a0&#8220;lock test file&#8221;\u00a0test.php<br \/>\nsvn unlock\u00a0PATH<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">5\u3001\u66f4\u65b0\u5230\u67d0\u4e2a\u7248\u672c<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn update -r\u00a0m path<br \/>\n\u4f8b\u5982\uff1a<br \/>\nsvn update\u5982\u679c\u540e\u9762\u6ca1\u6709\u76ee\u5f55\uff0c\u9ed8\u8ba4\u5c06\u5f53\u524d\u76ee\u5f55\u4ee5\u53ca\u5b50\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u90fd\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002<br \/>\nsvn update -r\u00a0200\u00a0test.php(\u5c06\u7248\u672c\u5e93\u4e2d\u7684\u6587\u4ef6test.php\u8fd8\u539f\u5230\u7248\u672c200)<br \/>\nsvn update test.php(\u66f4\u65b0\uff0c\u4e8e\u7248\u672c\u5e93\u540c\u6b65\u3002\u5982\u679c\u5728\u63d0\u4ea4\u7684\u65f6\u5019\u63d0\u793a\u8fc7\u671f\u7684\u8bdd\uff0c\u662f\u56e0\u4e3a\u51b2\u7a81\uff0c\u9700\u8981\u5148update\uff0c\u4fee\u6539\u6587\u4ef6\uff0c\u7136\u540e\u6e05\u9664svn resolved\uff0c\u6700\u540e\u518d\u63d0\u4ea4commit)<br \/>\n\u7b80\u5199\uff1asvn up<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">6\u3001\u67e5\u770b\u6587\u4ef6\u6216\u8005\u76ee\u5f55\u72b6\u6001<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a01\uff09svn status\u00a0path\uff08\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\u7684\u72b6\u6001\uff0c\u6b63\u5e38\u72b6\u6001\u4e0d\u663e\u793a\uff09<br \/>\n\u3010?\uff1a\u4e0d\u5728svn\u7684\u63a7\u5236\u4e2d\uff1bM\uff1a\u5185\u5bb9\u88ab\u4fee\u6539\uff1bC\uff1a\u53d1\u751f\u51b2\u7a81\uff1bA\uff1a\u9884\u5b9a\u52a0\u5165\u5230\u7248\u672c\u5e93\uff1bK\uff1a\u88ab\u9501\u5b9a\u3011<br \/>\n2\uff09svn status -v\u00a0path(\u663e\u793a\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\u72b6\u6001)<br \/>\n\u7b2c\u4e00\u5217\u4fdd\u6301\u76f8\u540c\uff0c\u7b2c\u4e8c\u5217\u663e\u793a\u5de5\u4f5c\u7248\u672c\u53f7\uff0c\u7b2c\u4e09\u548c\u7b2c\u56db\u5217\u663e\u793a\u6700\u540e\u4e00\u6b21\u4fee\u6539\u7684\u7248\u672c\u53f7\u548c\u4fee\u6539\u4eba\u3002<br \/>\n\u6ce8\uff1asvn status\u3001svn diff\u548c svn revert\u8fd9\u4e09\u6761\u547d\u4ee4\u5728\u6ca1\u6709\u7f51\u7edc\u7684\u60c5\u51b5\u4e0b\u4e5f\u53ef\u4ee5\u6267\u884c\u7684\uff0c\u539f\u56e0\u662fsvn\u5728\u672c\u5730\u7684.svn\u4e2d\u4fdd\u7559\u4e86\u672c\u5730\u7248\u672c\u7684\u539f\u59cb\u62f7\u8d1d\u3002<br \/>\n\u7b80\u5199\uff1asvn st<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">7\u3001\u5220\u9664\u6587\u4ef6<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn delete\u00a0path -m\u00a0&#8220;delete test fle&#8221;<br \/>\n\u4f8b\u5982\uff1asvn delete svn:\/\/192.168.1.1\/pro\/domain\/test.php -m\u00a0&#8220;delete test file&#8221;<br \/>\n\u6216\u8005\u76f4\u63a5svn delete test.php \u7136\u540e\u518dsvn ci -m &#8216;delete test file\u2018\uff0c\u63a8\u8350\u4f7f\u7528\u8fd9\u79cd<br \/>\n\u7b80\u5199\uff1asvn (del, remove, rm)<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">8\u3001\u67e5\u770b\u65e5\u5fd7<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn log\u00a0path<br \/>\n\u4f8b\u5982\uff1asvn log test.php \u663e\u793a\u8fd9\u4e2a\u6587\u4ef6\u7684\u6240\u6709\u4fee\u6539\u8bb0\u5f55\uff0c\u53ca\u5176\u7248\u672c\u53f7\u7684\u53d8\u5316<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">9\u3001\u67e5\u770b\u6587\u4ef6\u8be6\u7ec6\u4fe1\u606f<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn info\u00a0path<br \/>\n\u4f8b\u5982\uff1asvn info test.php<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">10\u3001\u6bd4\u8f83\u5dee\u5f02<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn diff\u00a0path(\u5c06\u4fee\u6539\u7684\u6587\u4ef6\u4e0e\u57fa\u7840\u7248\u672c\u6bd4\u8f83)<br \/>\n\u4f8b\u5982\uff1asvn diff test.php<br \/>\nsvn diff\u00a0-r m:n path(\u5bf9\u7248\u672cm\u548c\u7248\u672cn\u6bd4\u8f83\u5dee\u5f02)<br \/>\n\u4f8b\u5982\uff1asvn diff -r 200:201 test.php<br \/>\n\u7b80\u5199\uff1asvn di<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">11\u3001\u5c06\u4e24\u4e2a\u7248\u672c\u4e4b\u95f4\u7684\u5dee\u5f02\u5408\u5e76\u5230\u5f53\u524d\u6587\u4ef6<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn merge -r\u00a0m:n path<br \/>\n\u4f8b\u5982\uff1asvn merge -r\u00a0200:205\u00a0test.php\uff08\u5c06\u7248\u672c200\u4e0e205\u4e4b\u95f4\u7684\u5dee\u5f02\u5408\u5e76\u5230\u5f53\u524d\u6587\u4ef6\uff0c\u4f46\u662f\u4e00\u822c\u90fd\u4f1a\u4ea7\u751f\u51b2\u7a81\uff0c\u9700\u8981\u5904\u7406\u4e00\u4e0b\uff09<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">12\u3001SVN \u5e2e\u52a9<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn help<br \/>\nsvn help ci<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/h3>\n<h3 style=\"font-weight: bold; color: #232323;\">\u4ee5\u4e0a\u662f\u5e38\u7528\u547d\u4ee4\uff0c\u4e0b\u9762\u5199\u51e0\u4e2a\u4e0d\u7ecf\u5e38\u7528\u7684<\/h3>\n<h3 style=\"font-weight: bold; color: #232323;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/h3>\n<h3 style=\"font-weight: bold; color: #232323;\">13\u3001\u7248\u672c\u5e93\u4e0b\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u5217\u8868<\/h3>\n<blockquote style=\"color: #232323;\"><p>\u00a0\u00a0svn list\u00a0path<br \/>\n\u663e\u793apath\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u5c5e\u4e8e\u7248\u672c\u5e93\u7684\u6587\u4ef6\u548c\u76ee\u5f55<br \/>\n\u7b80\u5199\uff1asvn ls<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">14\u3001\u521b\u5efa\u7eb3\u5165\u7248\u672c\u63a7\u5236\u4e0b\u7684\u65b0\u76ee\u5f55<\/h3>\n<blockquote style=\"color: #232323;\"><p>svn mkdir: \u521b\u5efa\u7eb3\u5165\u7248\u672c\u63a7\u5236\u4e0b\u7684\u65b0\u76ee\u5f55\u3002<br \/>\n\u7528\u6cd5: 1\u3001mkdir PATH&#8230;<br \/>\n2\u3001mkdir URL&#8230;<br \/>\n\u521b\u5efa\u7248\u672c\u63a7\u5236\u7684\u76ee\u5f55\u3002<br \/>\n1\u3001\u6bcf\u4e00\u4e2a\u4ee5\u5de5\u4f5c\u526f\u672c PATH \u6307\u5b9a\u7684\u76ee\u5f55\uff0c\u90fd\u4f1a\u521b\u5efa\u5728\u672c\u5730\u7aef\uff0c\u5e76\u4e14\u52a0\u5165\u65b0\u589e<br \/>\n\u8c03\u5ea6\uff0c\u4ee5\u5f85\u4e0b\u4e00\u6b21\u7684\u63d0\u4ea4\u3002<br \/>\n2\u3001\u6bcf\u4e2a\u4ee5URL\u6307\u5b9a\u7684\u76ee\u5f55\uff0c\u90fd\u4f1a\u900f\u8fc7\u7acb\u5373\u63d0\u4ea4\u4e8e\u4ed3\u5e93\u4e2d\u521b\u5efa\u3002<br \/>\n\u5728\u8fd9\u4e24\u4e2a\u60c5\u51b5\u4e0b\uff0c\u6240\u6709\u7684\u4e2d\u95f4\u76ee\u5f55\u90fd\u5fc5\u987b\u4e8b\u5148\u5b58\u5728\u3002<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">15\u3001\u6062\u590d\u672c\u5730\u4fee\u6539<\/h3>\n<blockquote style=\"color: #232323;\"><p>svn revert: \u6062\u590d\u539f\u59cb\u672a\u6539\u53d8\u7684\u5de5\u4f5c\u526f\u672c\u6587\u4ef6 (\u6062\u590d\u5927\u90e8\u4efd\u7684\u672c\u5730\u4fee\u6539)\u3002revert:<br \/>\n\u7528\u6cd5: revert PATH&#8230;<br \/>\n\u6ce8\u610f: \u672c\u5b50\u547d\u4ee4\u4e0d\u4f1a\u5b58\u53d6\u7f51\u7edc\uff0c\u5e76\u4e14\u4f1a\u89e3\u9664\u51b2\u7a81\u7684\u72b6\u51b5\u3002\u4f46\u662f\u5b83\u4e0d\u4f1a\u6062\u590d<br \/>\n\u88ab\u5220\u9664\u7684\u76ee\u5f55<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">16\u3001\u4ee3\u7801\u5e93URL\u53d8\u66f4<\/h3>\n<blockquote style=\"color: #232323;\"><p>svn switch (sw):\u00a0\u66f4\u65b0\u5de5\u4f5c\u526f\u672c\u81f3\u4e0d\u540c\u7684URL\u3002<br \/>\n\u7528\u6cd5: 1\u3001switch URL [PATH]<br \/>\n2\u3001switch &#8211;relocate FROM TO [PATH&#8230;]<br \/>\n1\u3001\u66f4\u65b0\u4f60\u7684\u5de5\u4f5c\u526f\u672c\uff0c\u6620\u5c04\u5230\u4e00\u4e2a\u65b0\u7684URL\uff0c\u5176\u884c\u4e3a\u8ddf\u201csvn update\u201d\u5f88\u50cf\uff0c\u4e5f\u4f1a\u5c06<br \/>\n\u670d\u52a1\u5668\u4e0a\u6587\u4ef6\u4e0e\u672c\u5730\u6587\u4ef6\u5408\u5e76\u3002\u8fd9\u662f\u5c06\u5de5\u4f5c\u526f\u672c\u5bf9\u5e94\u5230\u540c\u4e00\u4ed3\u5e93\u4e2d\u67d0\u4e2a\u5206\u652f\u6216\u8005\u6807\u8bb0\u7684<br \/>\n\u65b9\u6cd5\u3002<br \/>\n2\u3001\u6539\u5199\u5de5\u4f5c\u526f\u672c\u7684URL\u5143\u6570\u636e\uff0c\u4ee5\u53cd\u6620\u5355\u7eaf\u7684URL\u4e0a\u7684\u6539\u53d8\u3002\u5f53\u4ed3\u5e93\u7684\u6839URL\u53d8\u52a8<br \/>\n(\u6bd4\u5982\u65b9\u6848\u540d\u6216\u662f\u4e3b\u673a\u540d\u79f0\u53d8\u52a8)\uff0c\u4f46\u662f\u5de5\u4f5c\u526f\u672c\u4ecd\u65e7\u5bf9\u6620\u5230\u540c\u4e00\u4ed3\u5e93\u7684\u540c\u4e00\u76ee\u5f55\u65f6\u4f7f\u7528<br \/>\n\u8fd9\u4e2a\u547d\u4ee4\u66f4\u65b0\u5de5\u4f5c\u526f\u672c\u4e0e\u4ed3\u5e93\u7684\u5bf9\u5e94\u5173\u7cfb\u3002<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">17\u3001\u89e3\u51b3\u51b2\u7a81<\/h3>\n<blockquote style=\"color: #232323;\"><p>svn resolved:\u00a0\u79fb\u9664\u5de5\u4f5c\u526f\u672c\u7684\u76ee\u5f55\u6216\u6587\u4ef6\u7684\u201c\u51b2\u7a81\u201d\u72b6\u6001\u3002<br \/>\n\u7528\u6cd5: resolved PATH&#8230;<br \/>\n\u6ce8\u610f: \u672c\u5b50\u547d\u4ee4\u4e0d\u4f1a\u4f9d\u8bed\u6cd5\u6765\u89e3\u51b3\u51b2\u7a81\u6216\u662f\u79fb\u9664\u51b2\u7a81\u6807\u8bb0\uff1b\u5b83\u53ea\u662f\u79fb\u9664\u51b2\u7a81\u7684<br \/>\n\u76f8\u5173\u6587\u4ef6\uff0c\u7136\u540e\u8ba9 PATH \u53ef\u4ee5\u518d\u6b21\u63d0\u4ea4\u3002<\/p><\/blockquote>\n<h3 style=\"font-weight: bold; color: #232323;\">18\u3001\u8f93\u51fa\u6307\u5b9a\u6587\u4ef6\u6216URL\u7684\u5185\u5bb9\u3002<\/h3>\n<blockquote style=\"color: #232323;\"><p>svn\u00a0cat\u00a0\u76ee\u6807[@\u7248\u672c]&#8230;\u5982\u679c\u6307\u5b9a\u4e86\u7248\u672c\uff0c\u5c06\u4ece\u6307\u5b9a\u7684\u7248\u672c\u5f00\u59cb\u67e5\u627e\u3002<br \/>\nsvn cat -r PREV filename &gt; filename (PREV \u662f\u4e0a\u4e00\u7248\u672c,\u4e5f\u53ef\u4ee5\u5199\u5177\u4f53\u7248\u672c\u53f7,\u8fd9\u6837\u8f93\u51fa\u7ed3\u679c\u662f\u53ef\u4ee5\u63d0\u4ea4\u7684)<\/p><\/blockquote>\n<p><a href=\"http:\/\/www.cnblogs.com\/heiniuhaha\/archive\/2011\/11\/11\/2245594.html\" target=\"_blank\">http:\/\/www.cnblogs.com\/heiniuhaha\/archive\/2011\/11\/11\/2245594.html\u00a0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>svn\u5ba2\u6237\u7aef\u4f7f\u7528\uff1a 1\uff0c\u4ece\u670d\u52a1\u5668\u7aef\u4e0b\u8f7d\u4ee3\u7801\u5230\u5ba2\u6237\u7aef\u672c\u5730\uff08\u4e0b\u8f7d\uff09 svn checkout svn:\/\/loca [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-5659","post","type-post","status-publish","format-standard","hentry","category-mac"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5659"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5659\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}