{"id":1083,"date":"2022-01-09T14:25:36","date_gmt":"2022-01-09T06:25:36","guid":{"rendered":"https:\/\/blog.5danyuan.com\/?p=1083"},"modified":"2022-01-09T14:25:36","modified_gmt":"2022-01-09T06:25:36","slug":"git-commit-%e7%9a%84%e6%8f%90%e4%ba%a4%e7%ba%a6%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=1083","title":{"rendered":"Git commit \u7684\u63d0\u4ea4\u7ea6\u5b9a"},"content":{"rendered":"\n<p>\u60f3\u8981\u4f7f\u7528 bamboo \u81ea\u52a8\u751f\u6210 changelog \u6587\u4ef6\uff0c\u68c0\u7d22\u4e86\u4e0b\u53d1\u73b0\u5df2\u7ecf\u6709\u73b0\u6210\u7684\u65b9\u5f0f\uff0c\u5373\u5927\u5bb6\u7ea6\u5b9a git commit message \u7684\u683c\u5f0f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;type&gt;(&lt;scope&gt;): &lt;subject&gt;\/\/ \u7a7a\u4e00\u884c&lt;body&gt;\/\/ \u7a7a\u4e00\u884c&lt;footer&gt;<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d\uff0cHeader \u662f\u5fc5\u9700\u7684\uff0cbody \u548c footer \u53ef\u4ee5\u7701\u7565\u3002\u4efb\u4f55\u4e00\u4e2a\u90e8\u5206\u5efa\u8bae\u957f\u5ea6\u4e0d\u8981\u592a\u957f\u907f\u514d\u81ea\u52a8\u6362\u884c\u3002<\/p>\n\n\n\n<p><strong>Header<\/strong> \u662f\u5fc5\u9700\u7684\uff0c\u53ea\u6709\u4e00\u884c\uff0c\u5305\u62ec\u4e09\u4e2a\u5b57\u6bb5\uff1atype\uff08\u5fc5\u9700\uff09\u3001scope\uff08\u53ef\u9009\uff09\u548csubject\uff08\u5fc5\u9700\uff09<br>\uff081\uff09type<br>    feat\uff1a\u65b0\u529f\u80fd\uff08feature\uff09<br>    fix\uff1a\u4fee\u8865bug<br>    docs\uff1a\u6587\u6863\uff08documentation\uff09<br>    style\uff1a \u683c\u5f0f\uff08\u4e0d\u5f71\u54cd\u4ee3\u7801\u8fd0\u884c\u7684\u53d8\u52a8\uff09<br>    refactor\uff1a\u91cd\u6784\uff08\u5373\u4e0d\u662f\u65b0\u589e\u529f\u80fd\uff0c\u4e5f\u4e0d\u662f\u4fee\u6539bug\u7684\u4ee3\u7801\u53d8\u52a8\uff09<br>    test\uff1a\u589e\u52a0\u6d4b\u8bd5<br>    chore\uff1a\u6784\u5efa\u8fc7\u7a0b\u6216\u8f85\u52a9\u5de5\u5177\u7684\u53d8\u52a8<\/p>\n\n\n\n<p>\u5982\u679ctype\u4e3a feat \u548c fix\uff0c\u5219\u8be5 commit \u5c06\u80af\u5b9a\u51fa\u73b0\u5728 Change log \u4e4b\u4e2d\u3002\u5176\u5b83\u7c7b\u578b\uff08docs\u3001chore\u3001style\u3001refactor\u3001test\uff09\u53ef\u4ee5\u4e0d\u7528\u653e\u3002<\/p>\n\n\n\n<p>\uff082\uff09scope<br>scope\u7528\u4e8e\u8bf4\u660e commit \u5f71\u54cd\u7684\u8303\u56f4\uff0c\u6bd4\u5982\u6570\u636e\u5c42\u3001\u63a7\u5236\u5c42\u3001\u89c6\u56fe\u5c42\u7b49\u7b49\uff0c\u89c6\u9879\u76ee\u4e0d\u540c\u800c\u4e0d\u540c\u3002<\/p>\n\n\n\n<p>\uff083\uff09subject<br>subject\u662f commit \u76ee\u7684\u7684\u7b80\u77ed\u63cf\u8ff0\uff0c\u4e0d\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002\u4ee5\u52a8\u8bcd\u5f00\u5934\uff0c\u4f7f\u7528\u7b2c\u4e00\u4eba\u79f0\u73b0\u5728\u65f6\uff0c\u6bd4\u5982change\uff0c\u800c\u4e0d\u662fchanged\u6216changes\uff1b\u7b2c\u4e00\u4e2a\u5b57\u6bcd\u5c0f\u5199\uff1b\u7ed3\u5c3e\u4e0d\u52a0\u53e5\u53f7\uff08.\uff09<\/p>\n\n\n\n<p><strong>Body<\/strong> \u90e8\u5206\u662f\u5bf9\u672c\u6b21 commit \u7684\u8be6\u7ec6\u63cf\u8ff0\uff0c\u53ef\u4ee5\u5206\u6210\u591a\u884c\u3002<br><strong>Footer<\/strong> \u90e8\u5206\u53ea\u7528\u4e8e\u4e24\u79cd\u60c5\u51b5\u3002\u4e00\uff1a\u4e0d\u517c\u5bb9\u53d8\u52a8\uff0c\u5982\u679c\u5f53\u524d\u4ee3\u7801\u4e0e\u4e0a\u4e00\u4e2a\u7248\u672c\u4e0d\u517c\u5bb9\uff0c\u5219 Footer \u90e8\u5206\u4ee5BREAKING CHANGE\u5f00\u5934\uff0c\u540e\u9762\u662f\u5bf9\u53d8\u52a8\u7684\u63cf\u8ff0\u3001\u4ee5\u53ca\u53d8\u52a8\u7406\u7531\u548c\u8fc1\u79fb\u65b9\u6cd5\u3002\u4e8c\uff1a\u5173\u95ed Issue\uff0c\u5982\u679c\u5f53\u524d commit \u9488\u5bf9\u67d0\u4e2aissue\uff0c\u90a3\u4e48\u53ef\u4ee5\u5728 Footer \u90e8\u5206\u6807\u8bb0\u5173\u95ed\u8fd9\u4e2a issue \u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/blog.csdn.net\/qq_27445903\/article\/details\/78092757\">\u6765\u6e90<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u60f3\u8981\u4f7f\u7528 bamboo \u81ea\u52a8\u751f\u6210 changelog \u6587\u4ef6\uff0c\u68c0\u7d22\u4e86\u4e0b\u53d1\u73b0\u5df2\u7ecf\u6709\u73b0\u6210\u7684\u65b9\u5f0f\uff0c\u5373\u5927\u5bb6\u7ea6\u5b9a git  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[149],"class_list":["post-1083","post","type-post","status-publish","format-standard","hentry","category-daily","tag-git"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/1083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1083"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/1083\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}