{"id":58101,"date":"2023-10-23T14:44:22","date_gmt":"2023-10-23T06:44:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/?p=58101"},"modified":"2023-10-23T14:44:24","modified_gmt":"2023-10-23T06:44:24","slug":"github%e4%b8%8a%e9%9d%a2%e5%a6%82%e4%bd%95%e7%9c%8b%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/58101.html","title":{"rendered":"GitHub\u4e0a\u9762\u5982\u4f55\u770b\u7248\u672c"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\">\n<p>\u200b\u4e3a\u4e86\u9ad8\u6548\u5730\u4f7f\u7528GitHub\uff0c\u7406\u89e3\u5176\u7248\u672c\u63a7\u5236\u662f\u5173\u952e\u3002\u672c\u6587\u5c06\u5411\u4f60\u4ecb\u7ecd\uff1a1.\u4ec0\u4e48\u662fGit\u548cGitHub\u7684\u7248\u672c\u63a7\u5236\uff1b2.\u5982\u4f55\u67e5\u770b\u4ed3\u5e93\u7684\u63d0\u4ea4\u5386\u53f2\uff1b3.\u5982\u4f55\u5229\u7528\u5206\u652f\u8fdb\u884c\u7248\u672c\u7ba1\u7406\uff1b4.\u5982\u4f55\u67e5\u770b\u7248\u672c\u6bd4\u8f83\u4e0e\u53d8\u5316\uff1b5.\u7406\u89e3\u6807\u7b7e\u5728\u7248\u672c\u4e2d\u7684\u4f5c\u7528\u3002GitHub\u4e0a\u7684\u7248\u672c\u63a7\u5236\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5386\u53f2\u53d8\u66f4\u7eaa\u5f55\u548c\u534f\u4f5c\u7684\u5e73\u53f0\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">1.\u4ec0\u4e48\u662fGit\u548cGitHub\u7684\u7248\u672c\u63a7\u5236<\/h2>\n\n\n\n<p>GitHub\u662f\u4e00\u4e2a\u57fa\u4e8eGit\u7684\u5728\u7ebf\u9879\u76ee\u6258\u7ba1\u5e73\u53f0\u3002Git\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u4fdd\u5b58\u4ee3\u7801\u7684\u5feb\u7167\u5e76\u968f\u65f6\u67e5\u770b\u3001\u56de\u9000\u548c\u5408\u5e76\u3002\u6bcf\u5f53\u4f60\u5728GitHub\u4e0a\u63d0\u4ea4\u66f4\u6539\uff0c\u5b83\u90fd\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7248\u672c\uff0c\u8bb0\u5f55\u6240\u6709\u6587\u4ef6\u7684\u72b6\u6001\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u5982\u4f55\u67e5\u770b\u4ed3\u5e93\u7684\u63d0\u4ea4\u5386\u53f2<\/h2>\n\n\n\n<p>\u5728GitHub\u4ed3\u5e93\u4e2d\uff0c\u70b9\u51fb\u201cCommits\u201d\u94fe\u63a5\u5373\u53ef\u67e5\u770b\u8be5\u4ed3\u5e93\u7684\u63d0\u4ea4\u5386\u53f2\u3002\u8fd9\u91cc\u4f1a\u5217\u51fa\u6240\u6709\u7684\u63d0\u4ea4\u8bb0\u5f55\uff0c\u6bcf\u4e2a\u8bb0\u5f55\u90fd\u6709\u4e00\u4e2a\u72ec\u7279\u7684\u54c8\u5e0c\u503c\u3001\u63d0\u4ea4\u8005\u7684\u4fe1\u606f\u548c\u63d0\u4ea4\u7684\u63cf\u8ff0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.\u5982\u4f55\u5229\u7528\u5206\u652f\u8fdb\u884c\u7248\u672c\u7ba1\u7406<\/h2>\n\n\n\n<p>\u5206\u652f\u662fGit\u7ba1\u7406\u7248\u672c\u7684\u6838\u5fc3\u6982\u5ff5\u3002\u4e3b\u5206\u652f\u901a\u5e38\u88ab\u79f0\u4e3a\u201cmaster\u201d\u6216\u201cmain\u201d\u3002\u5f53\u4f60\u9700\u8981\u6dfb\u52a0\u65b0\u529f\u80fd\u6216\u4fee\u590d\u9519\u8bef\u65f6\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u652f\uff0c\u5b8c\u6210\u66f4\u6539\u540e\u518d\u5408\u5e76\u5230\u4e3b\u5206\u652f\u3002\u5728GitHub\u4ed3\u5e93\u4e3b\u9875\uff0c\u70b9\u51fb\u201cBranch\u201d\u6309\u94ae\uff0c\u53ef\u4ee5\u67e5\u770b\u6240\u6709\u5206\u652f\u6216\u521b\u5efa\u65b0\u5206\u652f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4.\u5982\u4f55\u67e5\u770b\u7248\u672c\u6bd4\u8f83\u4e0e\u53d8\u5316<\/h2>\n\n\n\n<p>GitHub\u63d0\u4f9b\u4e86\u4e00\u4e2a\u201cCompare\u201d\u529f\u80fd\uff0c\u5141\u8bb8\u7528\u6237\u6bd4\u8f83\u4e24\u4e2a\u4e0d\u540c\u7248\u672c\u4e4b\u95f4\u7684\u5dee\u5f02\u3002\u5728\u201cCommits\u201d\u9875\u9762\uff0c\u9009\u62e9\u4f60\u60f3\u6bd4\u8f83\u7684\u4e24\u4e2a\u63d0\u4ea4\u6216\u5206\u652f\uff0c\u70b9\u51fb\u201cCompare\u201d\u6309\u94ae\uff0c\u4f60\u5c06\u770b\u5230\u4e24\u4e2a\u7248\u672c\u95f4\u4ee3\u7801\u7684\u53d8\u52a8\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5.\u7406\u89e3\u6807\u7b7e\u5728\u7248\u672c\u4e2d\u7684\u4f5c\u7528<\/h2>\n\n\n\n<p>\u5728Git\u4e2d\uff0c\u6807\u7b7e\u662f\u56fa\u5b9a\u7248\u672c\u7684\u5f15\u7528\uff0c\u901a\u5e38\u7528\u4e8e\u53d1\u5e03\u7248\u672c\u3002\u4f8b\u5982\uff0c\u5f53\u4f60\u7684\u8f6f\u4ef6\u53d1\u5e031.0\u7248\u672c\u65f6\uff0c\u53ef\u4ee5\u5728Git\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cv1.0\u201d\u7684\u6807\u7b7e\u3002\u5728GitHub\u4e0a\uff0c\u70b9\u51fb\u201cReleases\u201d\u94fe\u63a5\uff0c\u53ef\u4ee5\u67e5\u770b\u6240\u6709\u6807\u7b7e\u548c\u7248\u672c\u53d1\u5e03\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>GitHub\u4e0a\u7684\u7248\u672c\u63a7\u5236\u4e0d\u4ec5\u4f7f\u5f00\u53d1\u8005\u80fd\u591f\u8ddf\u8e2a\u4ee3\u7801\u7684\u53d8\u66f4\uff0c\u8fd8\u4e3a\u56e2\u961f\u534f\u4f5c\u63d0\u4f9b\u4e86\u6709\u6548\u7684\u5de5\u5177\u3002\u901a\u8fc7\u521b\u5efa\u5206\u652f\u3001\u6bd4\u8f83\u4ee3\u7801\u5dee\u5f02\u548c\u4f7f\u7528\u6807\u7b7e\uff0c\u4f60\u53ef\u4ee5\u66f4\u52a0\u9ad8\u6548\u5730\u7ba1\u7406\u548c\u53d1\u5e03\u4f60\u7684\u9879\u76ee\u7248\u672c\u3002\u8bb0\u4f4f\uff0c\u7248\u672c\u63a7\u5236\u4e0d\u4ec5\u4ec5\u662f\u8bb0\u5f55\u4ee3\u7801\u53d8\u66f4\uff0c\u66f4\u91cd\u8981\u7684\u662f\u7406\u89e3\u4ee3\u7801\u4e3a\u4f55\u8fd9\u6837\u53d8\u5316\uff0c\u4ee5\u53ca\u5982\u4f55\u4e0e\u56e2\u961f\u6210\u5458\u5171\u540c\u5408\u4f5c\uff0c\u786e\u4fdd\u4ee3\u7801\u7684\u8d28\u91cf\u548c\u4e00\u81f4\u6027\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1280\" height=\"850\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/10\/\u5982\u4f55\u4e0b\u8f7dgithub\u7684\u6587\u4ef6-7-1.jpg?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\" class=\"wp-image-58102\" srcset=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/10\/\u5982\u4f55\u4e0b\u8f7dgithub\u7684\u6587\u4ef6-7-1.jpg 1280w, https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/10\/\u5982\u4f55\u4e0b\u8f7dgithub\u7684\u6587\u4ef6-7-1-768x510.jpg 768w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/figure>\n\n\n\n<p><strong>\u5e38\u89c1\u95ee\u7b54\uff1a<\/strong><\/p>\n\n\n\n<ul>\n<li><strong>Q1: \u5728GitHub\u4e2d\uff0c\u7248\u672c\u662f\u5982\u4f55\u8868\u793a\u7684\uff1f<\/strong><\/li>\n\n\n\n<li>A1: \u5728GitHub\u4e2d\uff0c\u7248\u672c\u901a\u5e38\u901a\u8fc7Git\u7684\u63d0\u4ea4(commit)\u6765\u8868\u793a\u3002\u6bcf\u4e00\u6b21\u63d0\u4ea4\u90fd\u8868\u793a\u4e86\u4ee3\u7801\u5e93\u7684\u4e00\u4e2a\u7248\u672c\u3002\u6b64\u5916\uff0c\u5bf9\u4e8e\u8f6f\u4ef6\u9879\u76ee\uff0c\u5f00\u53d1\u8005\u901a\u5e38\u4f7f\u7528\u6807\u7b7e(tags)\u6765\u8868\u793a\u7279\u5b9a\u7684\u7248\u672c\uff0c\u5982v1.0\u6216v2.5\u3002<\/li>\n<\/ul>\n\n\n\n<ul>\n<li><strong>Q2: \u6211\u5982\u4f55\u5728GitHub\u7684\u67d0\u4e2a\u4ed3\u5e93\u4e2d\u67e5\u627e\u7279\u5b9a\u7684\u7248\u672c\uff1f<\/strong><\/li>\n\n\n\n<li>A2: \u5728GitHub\u7684\u4ed3\u5e93\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7<strong>commits<\/strong>\u9009\u9879\u5361\u67e5\u770b\u6240\u6709\u7684\u63d0\u4ea4\u8bb0\u5f55\u3002\u5982\u679c\u8981\u67e5\u627e\u7279\u5b9a\u7684\u7248\u672c\uff0c\u6700\u76f4\u63a5\u7684\u65b9\u5f0f\u662f\u70b9\u51fb<strong>tags<\/strong>\u9009\u9879\u5361\uff0c\u8fd9\u91cc\u4f1a\u5217\u51fa\u6240\u6709\u5df2\u6807\u8bb0\u7684\u7248\u672c\u3002<\/li>\n<\/ul>\n\n\n\n<ul>\n<li><strong>Q3: \u5982\u679c\u6211\u60f3\u770b\u5230\u4e24\u4e2a\u7248\u672c\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u5e94\u8be5\u5982\u4f55\u64cd\u4f5c\uff1f<\/strong><\/li>\n\n\n\n<li>A3: \u5728GitHub\u4e2d\uff0c\u9009\u62e9\u60a8\u60f3\u8981\u6bd4\u8f83\u7684\u4e24\u4e2a\u63d0\u4ea4\u6216\u6807\u7b7e\uff0c\u7136\u540e\u70b9\u51fb\u201cCompare\u201d\u9009\u9879\u3002\u7cfb\u7edf\u4f1a\u4e3a\u60a8\u5c55\u793a\u4e24\u4e2a\u7248\u672c\u4e4b\u95f4\u7684\u4ee3\u7801\u5dee\u5f02\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u200b\u4e3a\u4e86\u9ad8\u6548\u5730\u4f7f\u7528GitHub\uff0c\u7406\u89e3\u5176\u7248\u672c\u63a7\u5236\u662f\u5173\u952e\u3002\u672c\u6587\u5c06\u5411\u4f60\u4ecb\u7ecd\uff1a1.\u4ec0\u4e48\u662fGit\u548cGitHub\u7684\u7248\u672c\u63a7\u5236\uff1b [&hellip;]","protected":false},"author":7,"featured_media":58103,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/58101"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=58101"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/58101\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/58103"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=58101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=58101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=58101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}