{"id":374,"date":"2023-03-30T14:06:48","date_gmt":"2023-03-30T06:06:48","guid":{"rendered":"https:\/\/www.muxuetianyin.cn\/?p=374"},"modified":"2024-04-14T23:29:11","modified_gmt":"2024-04-14T15:29:11","slug":"git%e5%bf%bd%e7%95%a5%e4%bb%a3%e7%a0%81%e6%a0%a1%e9%aa%8c","status":"publish","type":"post","link":"https:\/\/www.muxuetianyin.cn\/?p=374","title":{"rendered":"git\u4e0a\u4f20\u6807\u51c6\u5ffd\u7565\u4ee3\u7801\u6821\u9a8c"},"content":{"rendered":"\n<p>[STARTED] Preparing\u2026<br>[SUCCESS] Preparing\u2026<br>[STARTED] Running tasks\u2026<br>[STARTED] Running tasks for *<em>\/<\/em>.less<br>[STARTED] Running tasks for *<em>\/<\/em>.{js,jsx,ts,tsx}<br>[STARTED] Running tasks for *<em>\/<\/em>.{js,jsx,tsx,ts,less,md,json}<br>[SKIPPED] No staged files match *<em>\/<\/em>.less<br>[STARTED] npm run lint-staged:js<br>[STARTED] prettier &#8211;write<br>[SUCCESS] prettier &#8211;write<br>[SUCCESS] Running tasks for *<em>\/<\/em>.{js,jsx,tsx,ts,less,md,json}<br>[SUCCESS] npm run lint-staged:js<br>[SUCCESS] Running tasks for *<em>\/<\/em>.{js,jsx,ts,tsx}<br>[SUCCESS] Running tasks\u2026<br>[STARTED] Applying modifications\u2026<br>[SUCCESS] Applying modifications\u2026<br>[STARTED] Cleaning up\u2026<br>[SUCCESS] Cleaning up\u2026<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>running commit-msg hook: fabric verify-commit<\/p>\n<\/blockquote>\n\n\n\n<p>ERROR invalid commit message format.<\/p>\n\n\n\n<p>Proper commit message format is required for automated changelog generation. Examples:<\/p>\n\n\n\n<p>\ud83d\udca5 feat(compiler): add &#8216;comments&#8217; option<br>\ud83d\udc1b fix(compiler): fix some bug<br>\ud83d\udcdd docs(compiler): add some docs<br>\ud83c\udf37 UI(compiler): better styles<br>\ud83c\udff0 chore(compiler): Made some changes to the scaffolding<br>\ud83c\udf10 locale(compiler): Made a small contribution to internationalization<\/p>\n\n\n\n<p>See .github\/commit-convention. md for more details.<\/p>\n\n\n\n<p>commit-msg hook failed (add &#8211;no-verify to bypass)<\/p>\n\n\n\n<p>\u5728\u4e4b\u524d\u6211\u4e0d\u77e5\u9053\u6709\u8fd9\u4e2a\u4ee3\u7801\u6821\u9a8c\uff0c\u53d1\u73b0git commit \u63d0\u4ea4\u4e0d\u4e0a\u53bb\u7136\u540e\u7ecf\u8fc7\u4e00\u756a\u7814\u7a76\u539f\u6765\u5f00\u542f\u4e86\u4ee3\u7801\u6821\u9a8c\uff0c\u6240\u4ee5\uff0c\u5982\u679c\u683c\u5f0f\u4e0d\u5408\u683c\u6216\u8005\u7f3a\u5c11\u90e8\u5206\u5fc5\u987b\u7684\u8bed\u53e5\u5c31\u4f1a\u63d0\u793a\u9519\u8bef\u3002\u672c\u4eba\u5149\u6362\u884c\u548c\u7a7a\u683c\u5c31\u6539\u4e86\u65e0\u6570\uff0c\u5934\u90fd\u5927\u4e86\uff0c<\/p>\n\n\n\n<p>\u6240\u4ee5\u6211\u8fd9\u91cc\u76f4\u63a5\u5ffd\u7565\u6821\u9a8c\u4ee3\u7801 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a><\/a>\u5728git&nbsp;<a href=\"https:\/\/so.csdn.net\/so\/search?q=commit&amp;spm=1001.2101.3001.7020\" target=\"_blank\" rel=\"noreferrer noopener\">commit<\/a>&nbsp;\u540e\u9762\u52a0\u4e0a &#8211;no-verify<\/h3>\n\n\n\n<p class=\"has-large-font-size\"><strong>\u89c4\u8303\u4f60\u7684Git commit<\/strong><\/p>\n\n\n\n<p>\u6bcf\u6b21\u63d0\u4ea4\uff0cCommit message \u90fd\u5305\u62ec\u4e09\u4e2a\u90e8\u5206\uff1aHeader\uff0cBody \u548c Footer\u3002&nbsp;&lt;type&gt;(&lt;scope&gt;): &lt;subject&gt;\/\/ \u7a7a\u4e00\u884c&lt;body&gt;\/\/ \u7a7a\u4e00\u884c&lt;footer&gt;<\/p>\n\n\n\n<p>\u5176\u4e2d\uff0cHeader \u662f\u5fc5\u9700\u7684\uff0cBody \u548c Footer \u53ef\u4ee5\u7701\u7565\u3002<\/p>\n\n\n\n<p>\u4e0d\u7ba1\u662f\u54ea\u4e00\u4e2a\u90e8\u5206\uff0c\u4efb\u4f55\u4e00\u884c\u90fd\u4e0d\u5f97\u8d85\u8fc772\u4e2a\u5b57\u7b26\uff08\u6216100\u4e2a\u5b57\u7b26\uff09\u3002\u8fd9\u662f\u4e3a\u4e86\u907f\u514d\u81ea\u52a8\u6362\u884c\u5f71\u54cd\u7f8e\u89c2\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.1 Header<\/h3>\n\n\n\n<p>Header\u90e8\u5206\u53ea\u6709\u4e00\u884c\uff0c\u5305\u62ec\u4e09\u4e2a\u5b57\u6bb5\uff1a<code>type<\/code>\uff08\u5fc5\u9700\uff09\u3001<code>scope<\/code>\uff08\u53ef\u9009\uff09\u548c<code>subject<\/code>\uff08\u5fc5\u9700\uff09<\/p>\n\n\n\n<p><strong>type(\u5fc5\u987b)<\/strong><\/p>\n\n\n\n<p>\u7528\u4e8e\u8bf4\u660egit commit\u7684\u7c7b\u522b\uff0c\u53ea\u5141\u8bb8\u4f7f\u7528\u4e0b\u9762\u7684\u6807\u8bc6\u3002<\/p>\n\n\n\n<p>feat\uff1a\u65b0\u529f\u80fd\uff08feature\uff09\u3002<\/p>\n\n\n\n<p>fix\/to\uff1a\u4fee\u590dbug\uff0c\u53ef\u4ee5\u662fQA\u53d1\u73b0\u7684BUG\uff0c\u4e5f\u53ef\u4ee5\u662f\u7814\u53d1\u81ea\u5df1\u53d1\u73b0\u7684BUG\u3002<\/p>\n\n\n\n<ul>\n<li>fix\uff1a\u4ea7\u751fdiff\u5e76\u81ea\u52a8\u4fee\u590d\u6b64\u95ee\u9898\u3002\u9002\u5408\u4e8e\u4e00\u6b21\u63d0\u4ea4\u76f4\u63a5\u4fee\u590d\u95ee\u9898<\/li>\n\n\n\n<li>to\uff1a\u53ea\u4ea7\u751fdiff\u4e0d\u81ea\u52a8\u4fee\u590d\u6b64\u95ee\u9898\u3002\u9002\u5408\u4e8e\u591a\u6b21\u63d0\u4ea4\u3002\u6700\u7ec8\u4fee\u590d\u95ee\u9898\u63d0\u4ea4\u65f6\u4f7f\u7528fix<\/li>\n<\/ul>\n\n\n\n<p>docs\uff1a\u6587\u6863\uff08documentation\uff09\u3002<\/p>\n\n\n\n<p>style\uff1a\u683c\u5f0f\uff08\u4e0d\u5f71\u54cd\u4ee3\u7801\u8fd0\u884c\u7684\u53d8\u52a8\uff09\u3002<\/p>\n\n\n\n<p>refactor\uff1a\u91cd\u6784\uff08\u5373\u4e0d\u662f\u65b0\u589e\u529f\u80fd\uff0c\u4e5f\u4e0d\u662f\u4fee\u6539bug\u7684\u4ee3\u7801\u53d8\u52a8\uff09\u3002<\/p>\n\n\n\n<p>perf\uff1a\u4f18\u5316\u76f8\u5173\uff0c\u6bd4\u5982\u63d0\u5347\u6027\u80fd\u3001\u4f53\u9a8c\u3002<\/p>\n\n\n\n<p>test\uff1a\u589e\u52a0\u6d4b\u8bd5\u3002<\/p>\n\n\n\n<p>chore\uff1a\u6784\u5efa\u8fc7\u7a0b\u6216\u8f85\u52a9\u5de5\u5177\u7684\u53d8\u52a8\u3002<\/p>\n\n\n\n<p>revert\uff1a\u56de\u6eda\u5230\u4e0a\u4e00\u4e2a\u7248\u672c\u3002<\/p>\n\n\n\n<p>merge\uff1a\u4ee3\u7801\u5408\u5e76\u3002<\/p>\n\n\n\n<p>sync\uff1a\u540c\u6b65\u4e3b\u7ebf\u6216\u5206\u652f\u7684Bug\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>scope(\u53ef\u9009)<\/strong><\/p>\n\n\n\n<p>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>\u4f8b\u5982\u5728Angular\uff0c\u53ef\u4ee5\u662flocation\uff0cbrowser\uff0ccompile\uff0ccompile\uff0crootScope\uff0c ngHref\uff0cngClick\uff0cngView\u7b49\u3002\u5982\u679c\u4f60\u7684\u4fee\u6539\u5f71\u54cd\u4e86\u4e0d\u6b62\u4e00\u4e2ascope\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528*\u4ee3\u66ff\u3002<\/p>\n\n\n\n<p><strong>subject(\u5fc5\u987b)<\/strong><\/p>\n\n\n\n<p>subject\u662fcommit\u76ee\u7684\u7684\u7b80\u77ed\u63cf\u8ff0\uff0c\u4e0d\u8d85\u8fc750\u4e2a\u5b57\u7b26\u3002<\/p>\n\n\n\n<p>\u5efa\u8bae\u4f7f\u7528\u4e2d\u6587\uff08\u611f\u89c9\u4e2d\u56fd\u4eba\u7528\u4e2d\u6587\u63cf\u8ff0\u95ee\u9898\u80fd\u66f4\u6e05\u695a\u4e00\u4e9b\uff09\u3002<\/p>\n\n\n\n<ul>\n<li>\u7ed3\u5c3e\u4e0d\u52a0\u53e5\u53f7\u6216\u5176\u4ed6\u6807\u70b9\u7b26\u53f7\u3002<\/li>\n\n\n\n<li>\u6839\u636e\u4ee5\u4e0a\u89c4\u8303git commit message\u5c06\u662f\u5982\u4e0b\u7684\u683c\u5f0f\uff1a<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>fix(DAO):\u7528\u6237\u67e5\u8be2\u7f3a\u5c11username\u5c5e\u6027 \nfeat(Controller):\u7528\u6237\u67e5\u8be2\u63a5\u53e3\u5f00\u53d1<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[STARTED] Preparing\u2026[SUCCESS] Preparing\u2026[STARTED] Runni [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=\/wp\/v2\/posts\/374"}],"collection":[{"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=374"}],"version-history":[{"count":6,"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":600,"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=\/wp\/v2\/posts\/374\/revisions\/600"}],"wp:attachment":[{"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.muxuetianyin.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}