{"id":1105,"date":"2010-05-26T10:38:00","date_gmt":"2010-05-26T02:38:00","guid":{"rendered":"\/?p=1105"},"modified":"2010-05-26T10:38:00","modified_gmt":"2010-05-26T10:38:00","slug":"1105","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/other\/1105.html","title":{"rendered":"\u540c\u65f6\u4f7f\u7528svn+git\u8fdb\u884c\u7248\u672c\u7ba1\u7406"},"content":{"rendered":"

\u9879\u76ee\u73af\u5883\u8bf4\u660e<\/p>\n

\u9879\u76ee\u4f7f\u7528svn\u8fdb\u884c\u4ee3\u7801\u7248\u672c\u7ba1\u7406\u3002<\/p>\n

\u4f7f\u7528\u573a\u666f<\/p>\n

\u4fee\u6539\u4e86\u67d0\u4e9b\u6587\u4ef6\u540e\uff0c\u5728\u4fee\u6539\u6210\u53e6\u5916\u7684\u5b9e\u73b0\u65b9\u6cd5\u524d\u5148\u5907\u4efd\u5f53\u524d\u5df2\u7ecf\u5b9e\u73b0\u7684\u65b9\u6848\uff08git commit\u4e34\u65f6\u6587\u4ef6\uff09<\/p>\n

\u5728\u4e0d\u80fd\u8fde\u63a5svn\u670d\u52a1\u5668\u7684\u673a\u5668\u4e0a\u4fee\u6539svn\u7248\u672c\u7ba1\u7406\u7684\u4ee3\u7801\uff0c\u4e14\u9700\u8981\u8fdb\u884c\u7248\u672c\u7ba1\u7406<\/p>\n

\u524d\u671f\u51c6\u5907<\/p>\n

\u5b89\u88c5git(MSsyGit,TortoiseGit)<\/p>\n

\u5b89\u88c5svn(TortoiseSVN)<\/p>\n

\u6d4b\u8bd5\u6b65\u9aa4<\/p>\n

\u672c\u5730\u65b0\u5efa\u76ee\u5f55 welkinvcproject.svngit\uff0csvn checkout file:\/\/\/E:\/Co<\/wbr>de\/svnRepository\/welkinvcproject\/trunk<\/a><\/p>\n

\u5728svn Settings\u7684Global ignore pattern\u589e\u52a0*.git\uff0c\u4f8b\u5982\u6211\u7684\u8bbe\u7f6e\u662f*.git *.obj *.manifest *.manifest.res *.ilk *.idb *.dep *.user *.exe *.pdb<\/p>\n

\u5728 welkinvcproject.svngit\u76ee\u5f55\u9f20\u6807\u53f3\u952e\u70b9\u51fbGit Init Here<\/p>\n

\u5728welkinvcproject.svngit\u76ee\u5f55\u4e0b\u5efa\u7acb.gitignore\u6587\u4ef6\uff0c\u628a\u4e0d\u9700\u8981git\u7ba1\u7406\u7684\u6587\u4ef6\u52a0\u5165\u6b64\u8868\uff0c\u4f8b\u5982.svn. \u6216\u8005\u7f16\u8f91.git\/info\/exclude\u6587\u4ef6\uff0c\u6211\u8bbe\u7f6e\u7684\u662f<\/p>\n

*.svn<\/p>\n

*.obj<\/p>\n

*.manifest<\/p>\n

*.manifest.res<\/p>\n

*.ilk<\/p>\n

*.idb<\/p>\n

*.dep<\/p>\n

*.user<\/p>\n

*.exe<\/p>\n

*.pdb<\/p>\n

\u5728welkinvcproject.svngit\u76ee\u5f55\u9f20\u6807\u53f3\u952e\u70b9\u51fbGit Commit -> "master"…\uff0c\u63d0\u4ea4\u6240\u6709svn\u7248\u672c\u63a7\u5236\u7684\u6587\u4ef6<\/p>\n

\u5728\u672c\u5730\u968f\u4fbf\u4fee\u6539\u51e0\u4e2a\u6587\u4ef6\uff0c\u4f46\u7531\u4e8e\u8fd8\u4e0d\u80fd\u786e\u5b9a\u662f\u6700\u540e\u7684\u4ee3\u7801\uff0c\u6240\u4ee5\u4e0d\u80fd\u63d0\u4ea4\u5230svn\uff0c\u91c7\u53d6\u4e34\u65f6\u63d0\u4ea4\u5230git\u7684\u529e\u6cd5\u6765\u7ba1\u7406\u3002\u5728welkinvcproject.svngit \u76ee\u5f55\u9f20\u6807\u53f3\u952e\u70b9\u51fbGit Commit -> "master"…\uff0c\u63d0\u4ea4\u53d8\u66f4\u7684\u6587\u4ef6<\/p>\n

\u91cd\u590d\u5faa\u73af\u6267\u884c\u4e0a\u4e00\u6b65<\/p>\n

\u6700\u540e\u518d\u63d0\u4ea4\u5230svn\uff0c\u518d\u63d0\u4ea4\u5230git\uff0c\u8fd9\u662fsvn \u7684\u4ee3\u7801\u548cgit\u7684\u4ee3\u7801\u662f\u4e00\u81f4\u7684\u3002\uff08\u7a0d\u540e\u5982\u679c\u53d1\u73b0\u4e4b\u524d\u63d0\u4ea4\u5230git\u7684\u67d0\u4e2a\u7248\u672c\u7684\u4ee3\u7801\u66f4\u5408\u9002\uff0c\u53ef\u4ee5\u4f7f\u7528git revert\u5230\u76f8\u5e94\u7684\u7248\u672c\uff0c\u518d\u63d0\u4ea4\u5230svn\u548cgit\uff09<\/p>\n

\u539f\u6587:<\/strong> http:\/\/wengshanjin2001.blog.163.com\/blog\/static\/376284582010018101535344\/<\/p>\n","protected":false},"excerpt":{"rendered":"

\u9879\u76ee\u73af\u5883\u8bf4\u660e<\/p>\n

\u9879\u76ee\u4f7f\u7528svn\u8fdb\u884c\u4ee3\u7801\u7248\u672c\u7ba1\u7406\u3002<\/p>\n

\u4f7f\u7528\u573a\u666f<\/p>\n

\u4fee\u6539\u4e86\u67d0\u4e9b\u6587\u4ef6\u540e\uff0c\u5728\u4fee\u6539\u6210\u53e6\u5916\u7684\u5b9e\u73b0\u65b9\u6cd5\u524d\u5148\u5907\u4efd\u5f53\u524d\u5df2\u7ecf\u5b9e\u73b0\u7684\u65b9\u6848\uff08git commit\u4e34\u65f6\u6587\u4ef6\uff09<\/p>\n

\u5728\u4e0d\u80fd\u8fde\u63a5svn\u670d\u52a1\u5668\u7684\u673a\u5668\u4e0a\u4fee\u6539svn\u7248\u672c\u7ba1\u7406\u7684\u4ee3\u7801\uff0c\u4e14\u9700\u8981\u8fdb\u884c\u7248\u672c\u7ba1\u7406<\/p>\n

\u524d\u671f\u51c6\u5907<\/p>\n

\u5b89\u88c5git(MSsyGit,TortoiseGit)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1105"}],"collection":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/comments?post=1105"}],"version-history":[{"count":0,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1105\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}