{"id":37251,"date":"2023-10-24T21:53:37","date_gmt":"2023-09-04T16:06:50","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/"},"modified":"2024-01-15T09:23:17","modified_gmt":"2024-01-15T01:23:17","slug":"git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","title":{"rendered":"git fetch\u548cgit pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<h2>\u9996\u5148<\/h2>\n<p>\u9019\u7bc7\u6587\u7ae0\u662f\u70ba\u90a3\u4e9b\u4e0d\u719f\u6089Git\u7684\u4eba\u800c\u5beb\u7684\u3002<br \/>\n\u540c\u6642\u4e5f\u662f\u6211\u7684\u5099\u5fd8\u9304\uff0c\u8acb\u6148\u60b2\u5730\u95b1\u8b80\u3002\u3002\u3002<\/p>\n<h2>\u6211\u64b0\u5199\u8fd9\u7bc7\u6587\u7ae0\u7684\u539f\u56e0<\/h2>\n<p>\u4f5c\u4e3a\u65b0\u6bd5\u4e1a\u751f\uff0c\u6211\u5728\u73b0\u5728\u7684\u516c\u53f8\u5df2\u7ecf\u5165\u804c\u4e86\u4e24\u4e2a\u534a\u6708\u3002\u7ec8\u4e8e\u5b8c\u6210\u4e86\u57f9\u8bad\uff0c\u5206\u914d\u5230\u4e86\u9879\u76ee\u3002<br \/>\n\u6211\u5145\u6ee1\u4e86\u51b3\u5fc3\uff0c\u4f46\u662fgit\u8fd8\u662f\u5f88\u96be\u554a\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01<br \/>\n\u4f5c\u4e3a\u4e00\u540d\u5de5\u7a0b\u5e08\uff0c\u9996\u5148\u9047\u5230\u7684\u96be\u70b9\u5f53\u7136\u662fgit\u548cgithub\u7684\u64cd\u4f5c\u4e86\u3002<br \/>\n\u4e5f\u8bb8\u662f\u56e0\u4e3a\u5728\u5b66\u751f\u65f6\u4ee3\u5ffd\u7565\u4e86\u8fd9\u65b9\u9762\u7684\u77e5\u8bc6\uff0c\u73b0\u5728\u5728\u8fd9\u91cc\u53d7\u82e6\u4e86\u3002\u3002\u3002<br \/>\n\u9488\u5bf9\u5904\u4e8e\u548c\u6211\u4e00\u6837\u60c5\u51b5\u7684\u4eba\uff0c\u4ee5\u53ca\u5373\u5c06\u5b66\u4e60\u7684\u4eba\uff0c\u6211\u6574\u7406\u4e86\u6709\u5173github\u7684\u57fa\u672c\u5185\u5bb9\uff0c\u8fd9\u6b21\u662f\u5173\u4e8e&#8221;git fetch\u548cgit pull\u7684\u533a\u522b&#8221;\uff0c\u8bf7\u770b\u4e00\u4e0b\u5427\uff01<\/p>\n<h2>$git fetch\u547d\u4ee4\u662f\u4ec0\u4e48<\/h2>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u662f\u5c06\u8fdc\u7a0b\u4ed3\u5e93\u7684\u4fe1\u606f\u590d\u5236\u5230\u672c\u5730\u4ed3\u5e93\u7684\u547d\u4ee4\u3002\u7136\u540e\u901a\u8fc7\u8f93\u5165$git merge\u547d\u4ee4\uff0c\u5c06\u5176\u5e94\u7528\u5230\u672c\u5730\u5de5\u4f5c\u533a\u3002<\/p>\n<h2>git pull\u547d\u4ee4\u662f\u4ec0\u4e48\u610f\u601d\uff1f<\/h2>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u5c06\u8fdc\u7a0b\u5b58\u50a8\u5e93\u7684\u4fe1\u606f\u76f4\u63a5\u540c\u6b65\u5230\u672c\u5730\u5de5\u4f5c\u533a\u3002<\/p>\n<h2>\u8fd9\u4e24\u8005\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f<\/h2>\n<p>\u5f88\u5c34\u5c2c\u5730\u8bf4\uff0c\u4ee5\u524d\u4e00\u76f4\u53ea\u4f7f\u7528&#8221;git pull&#8221;\u547d\u4ee4\uff0c\u76f4\u5230\u6700\u8fd1\u624d\u4e86\u89e3\u5230&#8221;git fetch&#8221;\u7684\u5b58\u5728\u3002\u3002\u3002<br \/>\n\u7b80\u5355\u5730\u6982\u62ec\u5c31\u662f\uff0c&#8221;git pull&#8221; = &#8220;git fetch&#8221; + &#8220;git merge&#8221;\u3002<br \/>\n\u533a\u522b\u5728\u4e8e\u662f\u76f4\u63a5\u5c06\u53d8\u66f4\u540c\u6b65\u5230\u672c\u5730\u5de5\u4f5c\u533a\uff0c\u8fd8\u662f\u5148\u540c\u6b65\u5230\u672c\u5730\u4ed3\u5e93\u518d\u540c\u6b65\u5230\u5de5\u4f5c\u533a\uff01<\/p>\n<h2>\u5e94\u8be5\u4f7f\u7528\u54ea\u4e00\u4e2a\uff1f<\/h2>\n<p>\u6211\u8ba4\u4e3a\u65e0\u8bba\u9009\u62e9\u54ea\u4e2a\u90fd\u53ef\u4ee5\uff0c\u4f46\u4e2a\u4eba\u89c9\u5f97\u4f7f\u7528&#8221;git pull&#8221;\u6709\u70b9\u5192\u9669\u3002<br \/>\n\u4f8b\u5982\uff0c\u5f53\u6211\u5728\u672c\u5730\u7684develop\u5206\u652f\u65f6\uff0c\u6267\u884c&#8221;git pull origin master&#8221;\u4f1a\u5c06\u8fdc\u7a0b\u5206\u652forigin\u7684master\u5206\u652f\u5408\u5e76\u5230\u672c\u5730\u7684develop\u5206\u652f\u3002<br \/>\n\u4e60\u60ef\u4e86\u7684\u8bdd\u53ef\u80fd\u6ca1\u4ec0\u4e48\u95ee\u9898\uff0c\u4f46\u5982\u679c\u4e0d\u4e60\u60ef\u7684\u8bdd\uff0c\u53ef\u80fd\u6700\u597d\u907f\u514d\u4f7f\u7528&#8221;git pull&#8221;\u3002<\/p>\n<h2>\u7ed3\u675f<\/h2>\n<p>\u6211\u6b63\u5728\u4ece\u5934\u590d\u4e60GitHub\uff0c\u4f46\u662f\u53d1\u73b0\u6709\u5f88\u591a\u6211\u5fd8\u8bb0\u4e86\u6216\u8005\u4e0d\u77e5\u9053\u7684\u5185\u5bb9\uff0c\u6240\u4ee5\u53d8\u5f97\u975e\u5e38\u56f0\u96be&#8230; \u4f46\u662f\u5982\u679c\u4e0d\u514b\u670d\u8fd9\u4e2a\u56f0\u96be\uff0c\u56e2\u961f\u5f00\u53d1\u5c31\u4e0d\u4f1a\u987a\u5229\u8fdb\u884c\uff0c\u4e5f\u4f1a\u7ed9\u56e2\u961f\u5e26\u6765\u9ebb\u70e6\uff0c\u6240\u4ee5\u6211\u51b3\u5fc3\u54ac\u7d27\u7259\u5173\u52aa\u529b\u4e0b\u53bb\u3002\u8c22\u8c22\u60a8\u7684\u9605\u8bfb\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u9019\u7bc7\u6587\u7ae0\u662f\u70ba\u90a3\u4e9b\u4e0d\u719f\u6089Git\u7684\u4eba\u800c\u5beb\u7684\u3002 \u540c\u6642\u4e5f\u662f\u6211\u7684\u5099\u5fd8\u9304\uff0c\u8acb\u6148\u60b2\u5730\u95b1\u8b80\u3002\u3002\u3002 \u6211\u64b0\u5199\u8fd9\u7bc7\u6587\u7ae0\u7684\u539f\u56e0  [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37251","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>git fetch\u548cgit pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch\u548cgit-pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"git fetch\u548cgit pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u9019\u7bc7\u6587\u7ae0\u662f\u70ba\u90a3\u4e9b\u4e0d\u719f\u6089Git\u7684\u4eba\u800c\u5beb\u7684\u3002 \u540c\u6642\u4e5f\u662f\u6211\u7684\u5099\u5fd8\u9304\uff0c\u8acb\u6148\u60b2\u5730\u95b1\u8b80\u3002\u3002\u3002 \u6211\u64b0\u5199\u8fd9\u7bc7\u6587\u7ae0\u7684\u539f\u56e0 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch\u548cgit-pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-04T16:06:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T01:23:17+00:00\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/\",\"name\":\"git fetch\u548cgit pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-09-04T16:06:50+00:00\",\"dateModified\":\"2024-01-15T01:23:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"git fetch\u548cgit pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"git fetch\u548cgit pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch\u548cgit-pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\/","og_locale":"zh_CN","og_type":"article","og_title":"git fetch\u548cgit pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f","og_description":"\u9996\u5148 \u9019\u7bc7\u6587\u7ae0\u662f\u70ba\u90a3\u4e9b\u4e0d\u719f\u6089Git\u7684\u4eba\u800c\u5beb\u7684\u3002 \u540c\u6642\u4e5f\u662f\u6211\u7684\u5099\u5fd8\u9304\uff0c\u8acb\u6148\u60b2\u5730\u95b1\u8b80\u3002\u3002\u3002 \u6211\u64b0\u5199\u8fd9\u7bc7\u6587\u7ae0\u7684\u539f\u56e0 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch\u548cgit-pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-04T16:06:50+00:00","article_modified_time":"2024-01-15T01:23:17+00:00","author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","name":"git fetch\u548cgit pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-09-04T16:06:50+00:00","dateModified":"2024-01-15T01:23:17+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"git fetch\u548cgit pull\u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-fetch%e5%92%8cgit-pull%e7%9a%84%e5%8c%ba%e5%88%ab%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37251"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37251\/revisions"}],"predecessor-version":[{"id":58169,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37251\/revisions\/58169"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}