{"id":10008097,"date":"2023-08-16T12:58:55","date_gmt":"2023-08-16T04:58:55","guid":{"rendered":"http:\/\/ityet.com\/?p=10008097"},"modified":"2023-08-16T12:58:55","modified_gmt":"2023-08-16T04:58:55","slug":"github%e5%a4%9a%e4%b8%aa%e4%bb%93%e5%ba%93%e7%9a%84%e5%bd%92%e5%b9%b6%e8%81%9a%e6%8b%a2%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008097","title":{"rendered":"github\u591a\u4e2a\u4ed3\u5e93\u7684\u5f52\u5e76\u805a\u62e2\u95ee\u9898"},"content":{"rendered":"<p>\u5982<a target=\"_blank\" href=\"https:\/\/segmentfault.com\/q\/1010000044112050\" rel=\"noopener noreferrer\">\u8fd9\u4e2a\u95ee\u9898\u63cf\u8ff0<\/a>\u7684\u4e00\u6837\uff0c<\/p>\n<blockquote>\n<p>\u573a\u666f\u662f\u8fd9\u6837\u7684\uff0c\u6211\u672c\u5730\u6709\u4ee5\u4e0b\u9879\u76ee\uff1a<br \/>a\u7c7b\u9879\u76ee\uff1aa1\u3001a2\u3001a3\u3001a4\uff1b<br \/>b\u7c7b\u9879\u76ee\uff1ab1\u3001b2\u3001b3\u3001b4\uff1b<br \/>c\u7c7b\u9879\u76ee\uff1ac1\u3001c2\u3001c3\u3001c4\uff1b<br \/>\u73b0\u5728\u6211\u60f3\u628a\u8fd9\u4e09\u7c7b\u9879\u76ee\u90fd\u4f20\u5230github\uff0c\u4e0a\u4f20\u6709\u4e2a\u51e0\u4e2a\u76ee\u7684<\/p>\n<ol>\n<li>\u65b9\u4fbf\u65e5\u540e\u5728\u7ebf\u67e5\u770b\u4ee3\u7801\uff0c\u57fa\u672c<b>\u53ea\u770b\u4e0d\u5199<\/b><\/li>\n<li>\u65b9\u4fbf\u770b\u5230\u6bcf\u4e2a\u7c7b\u90fd\u6709\u54ea\u4e9b\u9879\u76ee<\/li>\n<li>\u540e\u671f\u53ef\u80fd\u4f1a\u62c9\u4ee3\u7801\u4e0b\u6765\u770bcommit\u4fe1\u606f<\/li>\n<\/ol>\n<p>\u53e6\u5916\uff0c\u56e0\u4e3a\u4ed3\u5e93\u6bd4\u8f83\u591a\uff0c\u60f3\u4e0a\u4f20\u7684\u7701\u4e8b\u70b9\uff0c\u4e0d\u60f3\u9010\u4e2a\u9879\u76ee\u4e0a\u4f20\u3002<br \/>\u5728\u5c1d\u8bd5\u4e86\u4e00\u4e9b\u529e\u6cd5\uff1a<\/p>\n<ol>\n<li>\u628aa1\u3001a2\u3001a3\u3001a4\u76f4\u63a5\u653e\u5728\u76ee\u5f55a\u4e0b\u505a\u6210\u4e00\u4e2agit\u4ed3\u5e93\u4e0a\u4f20\uff0c\u53d1\u73b0\u5728github\u4e0d\u80fd\u76f4\u63a5\u67e5\u770b\u5177\u4f53&gt; \u9879\u76ee\uff0c\u662f\u4e00\u4e2a\u94fe\u63a5\u7684\u5f62\u5f0f\uff0c\u70b9\u51fb\u4e4b\u540e\u6ca1\u6709\u53cd\u5e94<br \/><img loading=\"lazy\" decoding=\"async\" width=\"263\" height=\"257\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9fID\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\"><br \/>sub module, sourcetree\u7684\u65b9\u6cd5\u90fd\u4e0d\u80fd\u6ee1\u8db3<\/li>\n<\/ol>\n<\/blockquote>\n<p>\u6700\u7ec8\u7684\u89e3\u51b3\u529e\u6cd5\u662f<\/p>\n<h4>\u521b\u5efa\u5927\u6587\u4ef6\u5939\uff0c\u5f52\u62e2\u9879\u76ee<\/h4>\n<p>\u4ee5a\u7c7b\u9879\u76ee\u4e3a\u4f8b\uff0c\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939a\uff0c\u7136\u540e\u628a\u5de5\u7a0b\u653e\u5165\u6587\u4ef6\u5939a\uff0c\u50cf\u4e0b\u9762\u8fd9\u6837<\/p>\n<pre><code>a\/\n  a1\/\n  a2\/\n  a3\/\n  a4\/<\/code><\/pre>\n<h4>\u7ed9\u9879\u76ee\u7684.git\u6587\u4ef6\u6539\u540d<\/h4>\n<p>\u6211\u4eec\u7ed9a1\u3001a2\u3001a3\u3001a4\u8fd9\u4e9b\u9879\u76ee\u4ed3\u5e93\u91cc\u7684.git\u6587\u4ef6\u6362\u4e2a\u540d\u5b57\uff0c\u6539\u6210git\u3002\u9ed8\u8ba4\u60c5\u51b5.git\u6587\u4ef6\u5939\u662f\u4e0d\u663e\u793a\u7684\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u6539\u3002<\/p>\n<pre><code>mv .git git<\/code><\/pre>\n<p>\u6211\u4eec\u4e4b\u6240\u4ee5\u8fd9\u4e48\u505a\uff0c\u662f\u56e0\u4e3a\uff1a<br \/>a1\u672c\u8eab\u662f\u4e00\u4e2a\u4ed3\u5e93\uff0c\u6211\u4eec\u628a\u6587\u4ef6\u5939a\u505a\u6210\u4e00\u4e2a\u4ed3\u5e93\u7684\u8bdd\uff0c\u63a8\u5230\u8fdc\u7aef\u4e4b\u540e\u5c31\u4f1a\u51fa\u73b0a1\u76ee\u5f55\u6253\u4e0d\u5f00\u7684\u60c5\u51b5\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u9700\u8981\u5904\u7406\u4e0b\u8fd9\u4e9b\u9879\u76ee\u4ed3\u5e93\u3002<br \/>\u56e0\u4e3agit\u662f\u901a\u8fc7.git\u76ee\u5f55\u91cc\u7684\u6587\u4ef6\u6765\u8bb0\u5f55\u4ed3\u5e93\u7684\u4fe1\u606f\u7684\u3002\u6211\u4eec\u65e2\u8981\u4fdd\u7559\u8fd9\u4e9b\u4fe1\u606f\uff0c\u4f46\u662f\u8fd8\u60f3\u4ed6\u4e0d\u662f\u4e2a\u4ed3\u5e93\uff0c\u90a3\u4e48\u6211\u4eec\u53ea\u8981\u7ed9.git\u6539\u4e2a\u540d\u5b57\u5c31\u884c\u4e86\uff0c\u6bd4\u5982\u6539\u6210git\u76ee\u5f55\uff0c\u8fd9\u6837\u4e0a\u4f20\u7684\u65f6\u5019a1\u5c31\u4e0d\u662f\u4e2a\u4ed3\u5e93\u4e86\uff08\u662f\u4e00\u4e2a\u666e\u901a\u7684\u6587\u4ef6\u5939\uff09\uff0c\u5f53\u6211\u4eec\u8981\u770ba1\u4ee3\u7801\u7684\u65f6\u5019\u628a\u4ed6\u62c9\u4e0b\u6765\uff0c\u628agit\u76ee\u5f55\u6539\u56de.git\uff0ca1\u5c31\u53c8\u662f\u4e00\u4e2a\u4ed3\u5e93\u4e86\uff0c\u53ef\u4ee5\u67e5\u770bcommit\u4fe1\u606f\u3002<br \/>\u8fd9\u6837\u5bf9a1\u3001a2\u3001a3\u3001a4\u90fd\u505a\u8fd9\u6837\u7684\u64cd\u4f5c\u5c31\u5904\u7406\u597d\u4e86\u3002<\/p>\n<h4>\u521d\u59cb\u5316\u76ee\u5f55a\uff0c\u63d0\u4ea4<\/h4>\n<p>\u628a\u76ee\u5f55a\u505a\u6210\u4e00\u4e2a\u4ed3\u5e93\uff0c\u63d0\u4ea4\u5230\u8fdc\u7aef\u5c31ok\u4e86\u3002<\/p>\n<h4>\u5176\u4ed6\u60c5\u51b5<\/h4>\n<p>\u5982\u679c\u4f60\u7684a1\u3001a2\u3001a3\u3001a4\u4ed3\u5e93\u90fd\u5df2\u7ecf\u63d0\u4ea4\u5230\u8fdc\u7aef\u4e86\uff0c\u53ea\u662f\u60f3\u6709\u4e2a\u5f52\u62e2\u5165\u53e3\u7684\u8bdd\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u7528github\u7684\u6536\u85cf\u5939\u529f\u80fd\u3002<br \/>\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u6211\u4eec\u65b0\u5efa\u4e00\u4e2a\u6536\u85cf\u5939<br \/><img decoding=\"async\" width=\"723\" height=\"185\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9hh8\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/li>\n<li>star\u81ea\u5df1\u9700\u8981\u5f52\u62e2\u7684\u4ed3\u5e93\uff0c\u5e76\u4e14\u9009\u62e9\u653e\u5165\u7684\u6536\u85cf\u5939<br \/><img decoding=\"async\" width=\"723\" height=\"237\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9hif\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/li>\n<li>\u70b9\u51fb\u5bf9\u5e94\u7684\u6536\u85cf\u5939\u5c31\u53ef\u4ee5\u770b\u5230\u81ea\u5df1\u5f52\u62e2\u7684\u4ed3\u5e93<br \/><img decoding=\"async\" width=\"723\" height=\"186\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9hiW\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><img decoding=\"async\" width=\"723\" height=\"224\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9hi0\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><br \/>\u8fd9\u6837\u76f8\u5f53\u4e8e\u6211\u4eec\u7528\u6536\u85cf\u5939\u521b\u5efa\u4e86\u4e00\u4e2a\u5206\u7c7b\uff0c\u66ff\u4ee3\u4e86\u539f\u6765\u7684\u6587\u4ef6\u5939\u529f\u80fd\u3002<br \/>\u53ea\u4e0d\u8fc7\u8fd9\u4e2a\u65b9\u6848\u6709\u4e00\u4e2a\u7f3a\u70b9\uff0c\u5c31\u662f\u8fd9\u4e2a\u6536\u85cf\u5939\u662f\u6240\u6709\u4eba\u53ef\u89c1\u7684\uff08\u53ea\u662f\u6536\u85cf\u5939\u6240\u6709\u4eba\u53ef\u89c1\uff0c\u79c1\u6709\u7684\u4ed3\u5e93\u8fd8\u662f\u770b\u4e0d\u5230\u7684\uff09\uff0c\u6240\u4ee5\u5728\u6587\u4ef6\u5939\u8d77\u540d\u4ee5\u53ca\u6dfb\u52a0\u63cf\u8ff0\u7684\u65f6\u5019\u9700\u8981\u7559\u610f\u3002<\/li>\n<\/ol>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000044118352\">https:\/\/segmentfault.com\/a\/1190000044118352<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u8fd9\u4e2a\u95ee\u9898\u63cf\u8ff0\u7684\u4e00\u6837\uff0c \u573a\u666f\u662f\u8fd9\u6837\u7684\uff0c\u6211\u672c\u5730\u6709\u4ee5\u4e0b\u9879\u76ee\uff1aa\u7c7b\u9879\u76ee\uff1aa1\u3001a2\u3001a3\u3001a4\uff1bb\u7c7b\u9879\u76ee\uff1ab1\u3001b2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10008097","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10008097"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008097\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}