{"id":160833,"date":"2020-09-28T02:20:51","date_gmt":"2020-09-27T18:20:51","guid":{"rendered":"http:\/\/4563.org\/?p=160833"},"modified":"2020-09-28T02:20:51","modified_gmt":"2020-09-27T18:20:51","slug":"%e4%b8%a4%e4%b8%aa-git-repo-%e5%90%88%e5%b9%b6%e5%90%8e%ef%bc%8c%e5%8f%af%e5%90%a6%e4%bf%9d%e6%8c%81%e5%90%8c%e6%a0%b7%e7%9a%84-commit-id%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=160833","title":{"rendered":"\u4e24\u4e2a git repo \u5408\u5e76\u540e\uff0c\u53ef\u5426\u4fdd\u6301\u540c\u6837\u7684 commit id\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e24\u4e2a git repo \u5408\u5e76\u540e\uff0c\u53ef\u5426\u4fdd\u6301\u540c\u6837\u7684 commit id\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zealinux <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u539f\u6765\u6709\u4e2a A \u9879\u76ee\uff0cmaster \u5206\u652f\uff0c \u540e\u6765\u53c8\u65b0\u5f00\u4e86 B \u9879\u76ee\uff0c\u4ee3\u7801\u4e0e A \u4e00\u81f4\uff0c \u7136\u540e A \u4e5f\u5728\u5f00\u53d1\uff0cB \u4e5f\u5728\u5f00\u53d1\u3002<\/p>\n<p>\u90a3\u4e48\u80fd\u5426\u5c06 A \u7684\u4fee\u6539 commit \u91ca\u653e\u5230 B \u9879\u76ee\u4e2d\uff08\u4ece\u4ea4\u6c47\u70b9\u62c9\u51fa\u65b0\u5206\u652f\uff09\uff0c \u800c\u4e14\u4fdd\u6301\u65b0\u5206\u652f\u4e0e A \u9879\u76ee\u7684 master \u5206\u652f\u7684\u6bcf\u4e2a commit id \u90fd\u4e00\u6837\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3479654\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wxsm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Repo \u8fd8\u80fd\u5408\u5e76\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3479655\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pupboss <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ece b \u62c9\u51fa\u6765\u4e00\u4e2a\u5171\u6709\u7684\u5206\u652f\uff0c\u968f\u610f\u547d\u540d\uff0c\u4f46\u662f track master \u5206\u652f\uff0cgitconfig \u91cc\u9762 origin \u6539\u6210 a \u4ed3\u5e93\uff0cpull master \u5206\u652f\uff0c\u4e4b\u540e\u6539\u6210 b \u4ed3\u5e93\uff0ctrack \u53e6\u4e00\u4e2a\u540d\u5b57\uff08\u9664 master \uff09\u7684\u5206\u652f\uff0cpush \u4e0a\u53bb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3479656\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shawndev <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5173\u952e\u5b57\uff1aupstream                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3479657\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wellsc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3479658\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : soulmt <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3479659\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             commit id \u662f\u5386\u53f2\u7684\u7b7e\u540d\u3002<br \/>\u5982\u679c\u4f60\u539f\u6765\u7684\u63d0\u4ea4\u4e0d\u662f\u6765\u81ea\u540c\u4e00\u5206\u652f\uff0c\u90a3\u4e48\u5c06\u4ed6\u4eec\u7684\u63d0\u4ea4\u8bb0\u5f55\u5408\u5e76\u4ee5\u540e\uff0c\u5386\u53f2\u6539\u53d8\u4e86\uff0ccommit id \u81ea\u7136\u4f1a\u6539\u53d8\u3002<\/p>\n<p>\u6362\u53e5\u8bdd\u8bf4\uff0c\u5982\u679c\u4f60\u7684\u4e24\u4e2a\u4ed3\u5e93<br \/>A: commit1 -&gt; commit2<br \/>B: commit3 -&gt; commit4<br \/>\u5047\u8bbe commit1 \u548c commit3 \u6709\u76f8\u540c\u7684\u6587\u4ef6\u5185\u5bb9\u4f46 commit id \u4e0d\u540c\uff0c\u90a3\u4e48\u5f53\u4f60\u628a 2 \u6539\u5ac1\u5230 3 \u4e0a\u7684\u65f6\u5019\u5fc5\u7136\u5f15\u8d77\u5386\u53f2\u7684\u53d8\u5316\uff0c\u4e5f\u5c31\u4f1a\u5bfc\u81f4 2 \u4e0e\u539f\u5148\u7684 2 \u7684 commit id \u4e0d\u540c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3479660\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : szq8014 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             git \u548c svn \u7684\u533a\u522b\u4e4b\u4e00\u5c31\u662f git \u662f\u5206\u5e03\u5f0f\u7684\uff0c\u53ea\u8981\u4ed3\u5e93\u7684\u521d\u59cb commit \u4e00\u81f4\u5c31\u53ef\u4ee5\u89c6\u4e3a\u540c\u4e00\u4e2a\u4ed3\u5e93\uff0c\u5c31\u53ef\u4ee5 pull\/merge\/push \u3002<br \/>\u4e00\u822c\u60c5\u51b5\u4e0b\u4f1a\u4ee5\u4e3a pull\/push \u7684\u76ee\u6807\u53ea\u80fd\u662f\u4e00\u4e2a\u4ed3\u5e93\uff0c\u5176\u5b9e\u53ef\u4ee5\u662f\u591a\u4e2a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e24\u4e2a git repo \u5408\u5e76\u540e\uff0c\u53ef&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/160833"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=160833"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/160833\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=160833"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=160833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}