{"id":430202,"date":"2021-04-18T13:12:59","date_gmt":"2021-04-18T05:12:59","guid":{"rendered":"http:\/\/4563.org\/?p=430202"},"modified":"2021-04-18T13:12:59","modified_gmt":"2021-04-18T05:12:59","slug":"%e5%a6%82%e4%bd%95%e6%89%b9%e9%87%8f%e6%9b%b4%e6%96%b0%e8%a2%ab%e8%ae%be%e7%bd%ae%e4%b8%ba-shallow-%e7%9a%84-git-submodules%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=430202","title":{"rendered":"\u5982\u4f55\u6279\u91cf\u66f4\u65b0\u88ab\u8bbe\u7f6e\u4e3a shallow \u7684 Git Submodules\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u4f55\u6279\u91cf\u66f4\u65b0\u88ab\u8bbe\u7f6e\u4e3a shallow \u7684 Git Submodules\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hronro <\/span>  <span><i><\/i> 7<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u73b0\u5728\u9879\u76ee\u4e0b\u6709\u4e00\u5806 submodules, \u6709\u5e76\u4e14\u8fd9\u4e9b submodules \u90fd\u88ab\u8bbe\u7f6e\u4e3a shallow (depth = 1)\u3002 \u8bf7\u95ee\u5982\u4f55\u624d\u80fd\u6279\u91cf\u66f4\u65b0\u8fd9\u4e9b submodules \u5230\u6700\u65b0\u7684 commit \uff1f<\/p>\n<p>\u6211\u770b Git \u7684\u5b98\u65b9\u6587\u6863\u4e2d\u8bf4\u53ef\u4ee5\u7528 <code>git submodule update<\/code> \u6765\u6293\u53d6\u65b0\u7684 commit\uff0c\u4f46\u662f\u6211\u8bd5\u8fc7\u6ca1\u7528\u3002<\/p>\n<p>\uff08\u5b98\u65b9\u6587\u6863\u662f\u624d\u8fd9\u4e2a commit \u52a0\u5165\u8bf4\u660e\u8bf4 <code>git submodule update<\/code> \u4f1a\u62c9\u53d6\u65b0\u7684 commit \u7684\uff0c\u5177\u4f53\u5bf9\u5e94\u7684 Git \u7248\u672c\u5e94\u8be5\u662f v2.25 \uff0c\u6211\u672c\u673a\u7684 Git \u7248\u672c\u5df2\u7ecf\u662f v2.31 \u4e86\uff0c\u5e94\u8be5\u4e0d\u662f\u7248\u672c\u7684\u95ee\u9898\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5645992\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hronro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4eba\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5645993\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             shallow \u4f1a\u5f71\u54cd\u66f4\u65b0\u5230\u6700\u65b0\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5645994\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hronro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @julyclyde <br \/>\u4e0d\u6e05\u695a\uff0c\u6211\u73b0\u5728\u6267\u884c\u4e86 `git submodule update` \u76f4\u63a5\u6ca1\u6709\u53cd\u5e94                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u6279\u91cf\u66f4\u65b0\u88ab\u8bbe\u7f6e\u4e3a shallo&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\/430202"}],"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=430202"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/430202\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=430202"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=430202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}