{"id":597,"date":"2018-02-23T23:48:51","date_gmt":"2018-02-23T15:48:51","guid":{"rendered":"http:\/\/60.205.208.74\/2018\/02\/23\/git-%e6%95%99%e7%a8%8b\/"},"modified":"2018-02-23T23:48:51","modified_gmt":"2018-02-23T15:48:51","slug":"git-%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.puzi7.net\/?p=597","title":{"rendered":"Git \u6559\u7a0b"},"content":{"rendered":"<span itemprop=\"description\"><div class=\"article-body\">\n<div class=\"article-intro\" id=\"content\">\n<h1>Git \u6559\u7a0b<\/h1>\n<div class=\"tutintro\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2015\/02\/f7246b600c338744a9591cd7530fd9f9d62aa0f8.png\" alt=\"Git \u6559\u7a0b\" width=\"220\" height=\"92\" class=\"alignnone size-full wp-image-11292\"><\/p>\n<p>Git\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u4e8e\u654f\u6377\u9ad8\u6548\u5730\u5904\u7406\u4efb\u4f55\u6216\u5c0f\u6216\u5927\u7684\u9879\u76ee\u3002<\/p>\n<p>Git \u662f Linus Torvalds \u4e3a\u4e86\u5e2e\u52a9\u7ba1\u7406 Linux \u5185\u6838\u5f00\u53d1\u800c\u5f00\u53d1\u7684\u4e00\u4e2a\u5f00\u653e\u6e90\u7801\u7684\u7248\u672c\u63a7\u5236\u8f6f\u4ef6\u3002<\/p>\n<p>Git \u4e0e\u5e38\u7528\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177 CVS, Subversion \u7b49\u4e0d\u540c\uff0c\u5b83\u91c7\u7528\u4e86\u5206\u5e03\u5f0f\u7248\u672c\u5e93\u7684\u65b9\u5f0f\uff0c\u4e0d\u5fc5\u670d\u52a1\u5668\u7aef\u8f6f\u4ef6\u652f\u6301\u3002<\/p>\n<\/div>\n<hr>\n<h2>Git \u4e0e SVN \u533a\u522b<\/h2>\n<p>GIT\u4e0d\u4ec5\u4ec5\u662f\u4e2a\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u5b83\u4e5f\u662f\u4e2a\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edf(CMS),\u5de5\u4f5c\u7ba1\u7406\u7cfb\u7edf\u7b49\u3002<\/p>\n<p>\u5982\u679c\u4f60\u662f\u4e00\u4e2a\u5177\u6709\u4f7f\u7528SVN\u80cc\u666f\u7684\u4eba\uff0c\u4f60\u9700\u8981\u505a\u4e00\u5b9a\u7684\u601d\u60f3\u8f6c\u6362\uff0c\u6765\u9002\u5e94GIT\u63d0\u4f9b\u7684\u4e00\u4e9b\u6982\u5ff5\u548c\u7279\u5f81\u3002<\/p>\n<p>Git \u4e0e SVN \u533a\u522b\u70b9\uff1a<\/p>\n<ul>\n<li>\n<p>\n1\u3001GIT\u662f\u5206\u5e03\u5f0f\u7684\uff0cSVN\u4e0d\u662f\uff1a\u8fd9\u662fGIT\u548c\u5176\u5b83\u975e\u5206\u5e03\u5f0f\u7684\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u4f8b\u5982SVN\uff0cCVS\u7b49\uff0c\u6700\u6838\u5fc3\u7684\u533a\u522b\u3002<\/p>\n<\/li>\n<li>\n<p>2\u3001GIT\u628a\u5185\u5bb9\u6309\u5143\u6570\u636e\u65b9\u5f0f\u5b58\u50a8\uff0c\u800cSVN\u662f\u6309\u6587\u4ef6\uff1a\u6240\u6709\u7684\u8d44\u6e90\u63a7\u5236\u7cfb\u7edf\u90fd\u662f\u628a\u6587\u4ef6\u7684\u5143\u4fe1\u606f\u9690\u85cf\u5728\u4e00\u4e2a\u7c7b\u4f3c.svn,.cvs\u7b49\u7684\u6587\u4ef6\u5939\u91cc\u3002<\/p>\n<\/li>\n<li>\n<p>3\u3001GIT\u5206\u652f\u548cSVN\u7684\u5206\u652f\u4e0d\u540c\uff1a\u5206\u652f\u5728SVN\u4e2d\u4e00\u70b9\u4e0d\u7279\u522b\uff0c\u5c31\u662f\u7248\u672c\u5e93\u4e2d\u7684\u53e6\u5916\u7684\u4e00\u4e2a\u76ee\u5f55\u3002<\/p>\n<\/li>\n<li>\n<p>\n4\u3001GIT\u6ca1\u6709\u4e00\u4e2a\u5168\u5c40\u7684\u7248\u672c\u53f7\uff0c\u800cSVN\u6709\uff1a\u76ee\u524d\u4e3a\u6b62\u8fd9\u662f\u8ddfSVN\u76f8\u6bd4GIT\u7f3a\u5c11\u7684\u6700\u5927\u7684\u4e00\u4e2a\u7279\u5f81\u3002<\/p>\n<\/li>\n<li>\n<p>5\u3001GIT\u7684\u5185\u5bb9\u5b8c\u6574\u6027\u8981\u4f18\u4e8eSVN\uff1aGIT\u7684\u5185\u5bb9\u5b58\u50a8\u4f7f\u7528\u7684\u662fSHA-1\u54c8\u5e0c\u7b97\u6cd5\u3002\u8fd9\u80fd\u786e\u4fdd\u4ee3\u7801\u5185\u5bb9\u7684\u5b8c\u6574\u6027\uff0c\u786e\u4fdd\u5728\u9047\u5230\u78c1\u76d8\u6545\u969c\u548c\u7f51\u7edc\u95ee\u9898\u65f6\u964d\u4f4e\u5bf9\u7248\u672c\u5e93\u7684\u7834\u574f\u3002<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2>Git \u5feb\u901f\u5165\u95e8<\/h2>\n<p>\u672c\u7ad9\u4e5f\u63d0\u4f9b\u6765Git\u5feb\u901f\u5165\u95e8\u7248\u672c\uff0c\u4f60\u53ef\u4ee5\u70b9\u51fb <a href=\"\/manual\/git-guide\/\" target=\"_blank\">Git\u7b80\u660e\u6307\u5357<\/a> \u67e5\u770b\u3002<\/p>\n<p>\u5165\u95e8\u540e\u5efa\u8bae\u901a\u8fc7\u672c\u7ad9\u8be6\u7ec6\u5b66\u4e60 Git \u6559\u7a0b\u3002<\/p>\n<p>Git \u5b8c\u6574\u547d\u4ee4\u624b\u518c\u5730\u5740\uff1a<a href=\"http:\/\/git-scm.com\/docs\" target=\"_blank\">http:\/\/git-scm.com\/docs<\/a><\/p>\n<p>PDF \u7248\u547d\u4ee4\u624b\u518c\uff1a<a href=\"\/manual\/github-git-cheat-sheet.pdf\" target=\"_blank\">github-git-cheat-sheet.pdf<\/a><\/p>\n<hr>\n<h2>\u76f8\u5173\u6587\u7ae0\u63a8\u8350<\/h2>\n<ul>\n<li>1\u3001<a href=\"\/w3cnote\/git-five-minutes-tutorial.html\" target=\"_blank\">Git \u4e94\u5206\u949f\u6559\u7a0b<\/a><\/li>\n<li>2\u3001<a href=\"\/w3cnote\/git-gui-window.html\" target=\"_blank\">Git GUI\u4f7f\u7528\u65b9\u6cd5<\/a><\/li>\n<li>3\u3001<a href=\"\/w3cnote\/git-guide.html\" target=\"_blank\">Github \u7b80\u660e\u6559\u7a0b<\/a><\/li>\n<p><!--\n\n<li>4\u3001<a href=\"\/manual\/progit\" target=\"_blank\">Git \u4e2d\u6587\u624b\u518c<\/a><\/li>\n\n--><\/p>\n<li>5\u3001<a href=\"\/w3cnote\/internet-organization-github.html\" target=\"_blank\">\u4e92\u8054\u7f51\u7ec4\u7ec7\u7684\u672a\u6765\uff1a\u5256\u6790GitHub\u5458\u5de5\u7684\u4efb\u6027\u4e4b\u6e90<\/a><\/li>\n<\/ul><\/div>\n<\/p><\/div>\n<span>","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\"><span itemprop=\"description\">Git \u6559\u7a0b Git\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u7528\u4e8e\u654f\u6377\u9ad8\u6548\u5730\u5904\u7406\u4efb\u4f55\u6216\u5c0f\u6216\u5927\u7684\u9879\u76ee\u3002&hellip;<\/span><\/p>\n<p class=\"more-link-p btn-align-right\"><a class=\"green zoom-btn\" href=\"https:\/\/www.puzi7.net\/?p=597\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[64,137],"class_list":["post-597","post","type-post","status-publish","format-standard","hentry","category-git","tag-git","tag-tool","zoom-theme-has-thumb"],"_links":{"self":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=597"}],"version-history":[{"count":0,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=\/wp\/v2\/posts\/597\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.puzi7.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}