{"id":21626,"date":"2024-11-19T11:58:37","date_gmt":"2024-11-19T03:58:37","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21626\/"},"modified":"2024-11-19T11:58:37","modified_gmt":"2024-11-19T03:58:37","slug":"vscode%e5%a6%82%e4%bd%95%e9%9b%86%e6%88%90svn","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21626\/","title":{"rendered":"vscode\u5982\u4f55\u96c6\u6210svn"},"content":{"rendered":"<blockquote><p>\n  \u5728 visual studio code \u4e2d\u96c6\u6210 svn \u7684\u6b65\u9aa4\uff1a\u5b89\u88c5 svn \u5ba2\u6237\u7aef\u3002\u5b89\u88c5 visual studio code \u6269\u5c55 &#8220;svn&#8221;\u3002\u914d\u7f6e visual studio code\uff0c\u6307\u5411 svn \u5ba2\u6237\u7aef\u53ef\u6267\u884c\u6587\u4ef6\u3002\u521d\u59cb\u5316 svn \u5b58\u50a8\u5e93\u3002\u5c06\u9879\u76ee\u4e0e svn \u5b58\u50a8\u5e93\u5173\u8054\u3002\u63d0\u4ea4\u66f4\u6539\u3002\u66f4\u65b0\u548c\u56de\u6eda\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/07\/2024060708152061149.jpg\" class=\"aligncenter\" title=\"vscode\u5982\u4f55\u96c6\u6210svn\u63d2\u56fe\" alt=\"vscode\u5982\u4f55\u96c6\u6210svn\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 Visual Studio Code \u4e2d\u96c6\u6210 SVN<\/strong><\/p>\n<p><strong>1. \u5b89\u88c5 SVN \u5ba2\u6237\u7aef<\/strong><\/p>\n<p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5 Subversion (SVN) \u5ba2\u6237\u7aef\u3002\u53ef\u4ee5\u4ece Subversion \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u3002<\/p>\n<p><strong>2. \u5b89\u88c5 Visual Studio Code \u6269\u5c55<\/strong><\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u5728 Visual Studio Code \u4e2d\u5b89\u88c5 &#8220;SVN&#8221; \u6269\u5c55\u3002\u901a\u8fc7\u6269\u5c55\u5e02\u573a\u6216\u76f4\u63a5\u4ece Visual Studio Code \u4e2d\u641c\u7d22 &#8220;SVN&#8221; \u6765\u5b89\u88c5\u3002<\/p>\n<p><strong>3. \u914d\u7f6e Visual Studio Code<\/strong><\/p>\n<p>\u5b89\u88c5\u6269\u5c55\u540e\uff0c\u9700\u8981\u914d\u7f6e Visual Studio Code \u4ee5\u4f7f\u7528 SVN \u5ba2\u6237\u7aef\u3002<\/p>\n<ul>\n<li>\u6309\u4e0b Ctrl + Shift + P\uff08Windows\/Linux\uff09\u6216 Cmd + Shift + P\uff08macOS\uff09\u6253\u5f00\u547d\u4ee4\u9762\u677f\u3002<\/li>\n<li>\u8f93\u5165 &#8220;Preferences: Open Settings (JSON)&#8221; \u5e76\u6309 Enter\u3002<\/li>\n<li>\u5728 JSON \u6587\u4ef6\u4e2d\uff0c\u627e\u5230 &#8220;svn.executablePath&#8221; \u5c5e\u6027\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a SVN \u5ba2\u6237\u7aef\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ul>\n<pre>\"svn.executablePath\": \"\/usr\/local\/bin\/svn\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>4. \u521d\u59cb\u5316 SVN \u5b58\u50a8\u5e93<\/strong><\/p>\n<p>\u5982\u679c\u5c1a\u672a\u521d\u59cb\u5316 SVN \u5b58\u50a8\u5e93\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u5b58\u50a8\u5e93\uff1a<\/p>\n<pre>svn init [\u4ed3\u5e93\u8def\u5f84]<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>5. \u5c06\u9879\u76ee\u4e0e SVN \u5b58\u50a8\u5e93\u5173\u8054<\/strong><\/p>\n<p>\u8981\u5c06\u9879\u76ee\u4e0e SVN \u5b58\u50a8\u5e93\u5173\u8054\uff0c\u8bf7\u4ece Visual Studio Code \u547d\u4ee4\u9762\u677f\u4e2d\u9009\u62e9 &#8220;SVN: Initialize Repository&#8221;\u3002\u8fd9\u5c06\u5728\u5f53\u524d\u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 .svn \u5b50\u76ee\u5f55\u3002<\/p>\n<p><strong>6. \u63d0\u4ea4\u66f4\u6539<\/strong><\/p>\n<p>\u8981\u5c06\u66f4\u6539\u63d0\u4ea4\u5230 SVN \u5b58\u50a8\u5e93\uff0c\u8bf7\u4ece\u547d\u4ee4\u9762\u677f\u4e2d\u9009\u62e9 &#8220;SVN: Commit&#8221;\u3002\u8f93\u5165\u63d0\u4ea4\u6d88\u606f\u5e76\u6309 Enter\u3002<\/p>\n<p><strong>7. \u66f4\u65b0\u548c\u56de\u6eda<\/strong><\/p>\n<p>\u8981\u83b7\u53d6\u5b58\u50a8\u5e93\u7684\u6700\u65b0\u66f4\u6539\uff0c\u8bf7\u4f7f\u7528 &#8220;SVN: Update&#8221; \u547d\u4ee4\u3002\u8981\u56de\u6eda\u5230\u4ee5\u524d\u7684\u63d0\u4ea4\uff0c\u8bf7\u4f7f\u7528 &#8220;SVN: Revert&#8221; \u547d\u4ee4\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u96c6\u6210svn\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 visual studio code \u4e2d\u96c6\u6210 svn \u7684\u6b65\u9aa4\uff1a\u5b89\u88c5 svn \u5ba2\u6237\u7aef\u3002\u5b89\u88c5 visual studio code \u6269\u5c55 &#8220;svn&#8221;\u3002\u914d\u7f6e visual studio code\uff0c\u6307\u5411 svn \u5ba2\u6237\u7aef\u53ef\u6267\u884c\u6587\u4ef6\u3002\u521d\u59cb\u5316 svn \u5b58\u50a8\u5e93\u3002\u5c06\u9879\u76ee\u4e0e svn \u5b58\u50a8\u5e93\u5173\u8054\u3002\u63d0\u4ea4\u66f4\u6539\u3002\u66f4\u65b0\u548c\u56de\u6eda\u3002 \u5982\u4f55\u5728 Visual Studio Code \u4e2d\u96c6\u6210 SVN 1. \u5b89\u88c5 SVN \u5ba2\u6237\u7aef \u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5 Subversion (SVN) \u5ba2\u6237\u7aef\u3002\u53ef\u4ee5\u4ece Subversion \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u3002 2. \u5b89\u88c5 Visual Studio Code \u6269\u5c55 \u63a5\u4e0b\u6765\uff0c\u5728 Visual Studio Code \u4e2d\u5b89\u88c5 &#8220;SVN&#8221; \u6269\u5c55\u3002\u901a\u8fc7\u6269\u5c55\u5e02\u573a\u6216\u76f4\u63a5\u4ece Visual Studio Code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21626","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=21626"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21626\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}