{"id":776,"date":"2019-11-13T13:31:27","date_gmt":"2019-11-13T05:31:27","guid":{"rendered":"https:\/\/www.datarelab.com\/blog\/?p=776"},"modified":"2019-11-13T13:31:27","modified_gmt":"2019-11-13T05:31:27","slug":"git%e4%b8%ad%e5%90%8c%e6%ad%a5%e4%b8%bb%e5%b9%b2%e7%9a%84%e4%bb%a3%e7%a0%81%e5%88%b0fork%e5%88%86%e6%94%af%e9%87%8c","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/776.html","title":{"rendered":"Git\u4e2d\u540c\u6b65\u4e3b\u5e72\u7684\u4ee3\u7801\u5230fork\u5206\u652f\u91cc"},"content":{"rendered":"\n<p>1.\u6307\u5b9a\u4ee3\u7801\u540c\u6b65\u7684\u6e90\uff0c \u5373\u6700\u65b0\u4ee3\u7801\u5e93\u7684\u5730\u5740<br>\ngit remote add upstream http:\/\/xxx.xxx.git<\/p>\n\n\n\n<p>2.\u8fdc\u7a0b\u4ee3\u7801\u63d0\u4ea4\u5230\u672c\u5730upstream\/master\u5206\u652f<br>\ngit fetch upstream<\/p>\n\n\n\n<p>3.\u5207\u6362\u672c\u5730master\u5206\u652f<br>\ngit checkout master<\/p>\n\n\n\n<p>4.\u628aupstream\/master\u5408\u5e76\u5230\u672c\u5730master<br>\ngit rebase upstream\/master<\/p>\n\n\n\n<p>5.\u66f4\u65b0\u672c\u5730master\u5230fork\u7684\u670d\u52a1\u5668\u4e0a<br>\ngit push<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u6307\u5b9a\u4ee3\u7801\u540c\u6b65\u7684\u6e90\uff0c \u5373\u6700\u65b0\u4ee3\u7801\u5e93\u7684\u5730\u5740 git remote add upstream http:\/\/xx [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-776","post","type-post","status-publish","format-standard","hentry","category-Technical_literature"],"views":2365,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=776"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/776\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}