{"id":37369,"date":"2023-09-06T05:52:32","date_gmt":"2023-04-02T12:18:27","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/"},"modified":"2024-04-30T21:41:41","modified_gmt":"2024-04-30T13:41:41","slug":"git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/","title":{"rendered":"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f git pull"},"content":{"rendered":"<p>git push \u7684\u76f8\u53cd\u64cd\u4f5c\u662f git fetch\u3002\u4e0d\u662f git pull\u3002<\/p>\n<h1>\u8fd9\u662f\u4ec0\u4e48\u610f\u601d\uff1f<\/h1>\n<p>git push \u306f\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u30ea\u30e2\u30fc\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u9001\u308a\u8fbc\u3080\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<p>git fetch \u306f\u3001\u30ea\u30e2\u30fc\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u30ed\u30fc\u30ab\u30eb\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u53d6\u308a\u8fbc\u3080\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u563f\uff0c\u5bf9\u5e94\u7684\u547d\u4ee4\u5e94\u8be5\u662f\u8fd9\u4e2a\u3002<\/p>\n<p>\u90a3\u4e48\uff0cgit pull \u662f\u4ec0\u4e48\u5462\uff1f<\/p>\n<p>git pull \u306f\u3001\u307e\u305a\u3001\u30ea\u30e2\u30fc\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u30ed\u30fc\u30ab\u30eb\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u53d6\u308a\u8fbc\u307f\u3001\u6b21\u306b\u3001\u73fe\u5728\u306e\u30ed\u30fc\u30ab\u30eb\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u5bfe\u3057\u3066\u3001\u305d\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u30ea\u30e2\u30fc\u30c8\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u30de\u30fc\u30b8\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u53ef\u4ee5\u8fdb\u884c\u5408\u5e76\u64cd\u4f5c\u4e86\u3002\u7279\u522b\u662f\u5728\u5408\u5e76\u5b8c\u6210\u540e\uff0c\u5de5\u4f5c\u6811\u7684\u5185\u5bb9\u5c06\u53d8\u4e3a\u5408\u5e76\u540e\u7684\u5185\u5bb9\u3002<\/p>\n<p>git push \u548c git fetch \u53ea\u64cd\u4f5c\u5b58\u50a8\u5e93\uff0c\u4e0d\u6d89\u53ca\u5de5\u4f5c\u6811\u3002\u4e0e\u6b64\u76f8\u53cd\uff0cgit pull \u4e0d\u4ec5\u64cd\u4f5c\u5b58\u50a8\u5e93\uff0c\u4e5f\u64cd\u4f5c\u5de5\u4f5c\u6811\u3002\u56e0\u6b64\uff0c\u53ef\u4ee5\u8bf4\u5c06 git push \u548c git pull \u89c6\u4e3a\u4e00\u5bf9\u662f\u4e0d\u81ea\u7136\u7684\u3002<\/p>\n<h1>\u6211\u4eec\u6765\u7528 git fetch<\/h1>\n<p>git fetch \u4e0d\u4f1a\u4fee\u6539\u5de5\u4f5c\u6811\uff0c\u56e0\u6b64\u53ef\u4ee5\u653e\u5fc3\u5730\u6267\u884c\u3002\u968f\u65f6\u66f4\u65b0\u8fdc\u7a0b\u4fe1\u606f\u3002\u5f53\u60f3\u8981\u8ffd\u968f\u8fdc\u7a0b\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u67e5\u770b\u65e5\u5fd7\u6765\u786e\u8ba4\uff0c\u7136\u540e\u4f7f\u7528git merge FETCH_HEAD\u8fdb\u884c\u5408\u5e76\u5373\u53ef\u3002<\/p>\n<p>git pull\u8fd9\u4e2a\u547d\u4ee4\u76f8\u5f53\u590d\u6742\uff0c\u4e0d\u6613\u7406\u89e3\uff0c\u8fd8\u4f1a\u505a\u4e00\u4e9b\u65e0\u5173\u7d27\u8981\u7684\u4e8b\u60c5\uff0c\u6ca1\u6709\u4ec0\u4e48\u597d\u5904\u3002\u6211\u4eec\u6700\u597d\u5fd8\u8bb0\u8fd9\u6837\u7684\u547d\u4ee4\u3002<\/p>\n<p>\u4ece\u73b0\u5728\u5f00\u59cb\uff0c\u4f7f\u7528\u8fdc\u7a0b\u6570\u636e\u8bf7\u4f7f\u7528 git fetch \u547d\u4ee4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git push \u7684\u76f8\u53cd\u64cd\u4f5c\u662f git fetch\u3002\u4e0d\u662f git pull\u3002 \u8fd9\u662f\u4ec0\u4e48\u610f\u601d\uff1f git push [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37369","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 push \u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f git pull - 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-push-\u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f-git-pull\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f git pull\" \/>\n<meta property=\"og:description\" content=\"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u662f git fetch\u3002\u4e0d\u662f git pull\u3002 \u8fd9\u662f\u4ec0\u4e48\u610f\u601d\uff1f git push [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/git-push-\u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f-git-pull\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-02T12:18:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T13:41:41+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\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-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/\",\"name\":\"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f git pull - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-02T12:18:27+00:00\",\"dateModified\":\"2024-04-30T13:41:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f git pull\"}]},{\"@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\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f git pull - 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-push-\u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f-git-pull\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f git pull","og_description":"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u662f git fetch\u3002\u4e0d\u662f git pull\u3002 \u8fd9\u662f\u4ec0\u4e48\u610f\u601d\uff1f git push [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/git-push-\u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f-git-pull\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-02T12:18:27+00:00","article_modified_time":"2024-04-30T13:41:41+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/","name":"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f git pull - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-02T12:18:27+00:00","dateModified":"2024-04-30T13:41:41+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"git push \u7684\u76f8\u53cd\u64cd\u4f5c\u4e0d\u662f git pull"}]},{"@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\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-push-%e7%9a%84%e7%9b%b8%e5%8f%8d%e6%93%8d%e4%bd%9c%e4%b8%8d%e6%98%af-git-pull%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37369","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37369"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37369\/revisions"}],"predecessor-version":[{"id":94463,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37369\/revisions\/94463"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}