{"id":26,"date":"2026-02-13T16:26:51","date_gmt":"2026-02-13T08:26:51","guid":{"rendered":"https:\/\/word.ronrin.cn\/?p=26"},"modified":"2026-02-17T18:36:30","modified_gmt":"2026-02-17T10:36:30","slug":"github-%e5%9f%ba%e6%9c%ac%e6%93%8d%e4%bd%9c%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/word.ronrin.cn\/index.php\/2026\/02\/13\/github-%e5%9f%ba%e6%9c%ac%e6%93%8d%e4%bd%9c%e6%b5%81%e7%a8%8b\/","title":{"rendered":"github \u57fa\u672c\u64cd\u4f5c\u6d41\u7a0b"},"content":{"rendered":"\n<p>\u4e00\u3001\u57fa\u7840\u6d41\u7a0b\uff08\u63a8\u8350\u5de5\u4f5c\u6d41\uff09<br>. \u514b\u9686\u4ed3\u5e93\u5230\u672c\u5730<br>bash<\/p>\n\n\n\n<p>\u7f16\u8f91<\/p>\n\n\n\n<p>git clone https:\/\/github.com\/shate32cm-cyber\/test.git<br>cd test<br>. \u914d\u7f6e\u7528\u6237\u4fe1\u606f\uff08\u9996\u6b21\u4f7f\u7528\u9700\u8bbe\u7f6e\uff09<br>bash<\/p>\n\n\n\n<p>\u7f16\u8f91<\/p>\n\n\n\n<p>git config &#8211;global user.name &#8220;shate32cm-cyber&#8221;<br>git config &#8211;global user.email &#8220;your-email@example.com&#8221;<br>\u26a0\ufe0f \u90ae\u7bb1\u5efa\u8bae\u548c GitHub \u8d26\u53f7\u4e00\u81f4\uff0c\u5426\u5219 commit \u4e0d\u4f1a\u5173\u8054\u5230\u4f60\u7684\u8d26\u53f7\u3002<br>\ud83d\udcc1 \u4e8c\u3001\u65e5\u5e38\u5f00\u53d1\u6d41\u7a0b\uff08\u63a8\u8350\uff1a\u529f\u80fd\u5206\u652f\u5de5\u4f5c\u6d41\uff09<br>\u2705 \u597d\u4e60\u60ef\uff1a\u4e0d\u8981\u76f4\u63a5\u5728 main \u5206\u652f\u5199\u4ee3\u7801\uff01<br>\u6b65\u9aa4\uff1a<br>\u62c9\u53d6\u6700\u65b0\u4ee3\u7801<br>bash<\/p>\n\n\n\n<p>\u7f16\u8f91<\/p>\n\n\n\n<p>git checkout main<br>git pull origin main<br>\u65b0\u5efa\u529f\u80fd\u5206\u652f<br>bash<\/p>\n\n\n\n<p>\u7f16\u8f91<\/p>\n\n\n\n<p>git checkout -b feat\/add-login-page<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u6216 fix\/bug-name, chore\/update-deps \u7b49<\/h1>\n\n\n\n<p>\u7f16\u5199\u4ee3\u7801 \u2192 \u6dfb\u52a0 \u2192 \u63d0\u4ea4<br>bash<\/p>\n\n\n\n<p>\u7f16\u8f91<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u4fee\u6539\u6587\u4ef6\u540e<\/h1>\n\n\n\n<p>git add .<br>git commit -m &#8220;feat: add login form component&#8221;<br>\u63a8\u9001\u5230\u8fdc\u7a0b\u5206\u652f<br>bash<\/p>\n\n\n\n<p>\u7f16\u8f91<\/p>\n\n\n\n<p>git push -u origin feat\/add-login-page<br>\u5728 GitHub \u4e0a\u521b\u5efa Pull Request (PR)<br>\u5408\u5e76\u524d\u53ef\u8ba9\u961f\u53cb Code Review<br>\u5408\u5e76\u540e\u5220\u9664\u8fdc\u7a0b\u5206\u652f\uff08GitHub \u901a\u5e38\u63d0\u4f9b\u9009\u9879\uff09<br>\u56de\u5230 main \u5e76\u66f4\u65b0<br>bash<\/p>\n\n\n\n<p>\u7f16\u8f91<\/p>\n\n\n\n<p>git checkout main<br>git pull origin main<br>\u270d\ufe0f \u4e09\u3001Commit \u4fe1\u606f\u89c4\u8303\uff08\u63a8\u8350 Conventional Commits\uff09<br>\u683c\u5f0f\uff1a<br>text<\/p>\n\n\n\n<p>\u7f16\u8f91<\/p>\n\n\n\n<p>():<br>\u5e38\u89c1 type\uff1a<br>feat: \u65b0\u529f\u80fd<br>fix: \u4fee\u590d bug<br>docs: \u6587\u6863\u66f4\u65b0<br>style: \u4ee3\u7801\u683c\u5f0f\uff08\u4e0d\u5f71\u54cd\u903b\u8f91\uff09<br>refactor: \u91cd\u6784<br>test: \u6d4b\u8bd5\u76f8\u5173<br>chore: \u6784\u5efa\/\u4f9d\u8d56\u7b49\u6742\u9879<br>\u2705 \u793a\u4f8b\uff1a<br>bash<\/p>\n\n\n\n<p>\u7f16\u8f91<\/p>\n\n\n\n<p>git commit -m &#8220;feat(auth): implement user login API&#8221;<br>git commit -m &#8220;fix: resolve null pointer in user profile&#8221;<br>git commit -m &#8220;docs: update README with setup instructions&#8221;<br>\u8fd9\u6837\u540e\u7eed\u751f\u6210 changelog \u6216\u81ea\u52a8\u5316\u53d1\u5e03\u4f1a\u66f4\u65b9\u4fbf\u3002<br>\ud83d\udee1\ufe0f \u56db\u3001\u5176\u4ed6\u597d\u4e60\u60ef<br>\u8868\u683c<br>\u9879\u76ee \u5efa\u8bae<br>.gitignore \u6dfb\u52a0\u5ffd\u7565\u6587\u4ef6\uff08\u5982 node_modules\/, .env, *.log\uff09<br>README.md \u5199\u6e05\u695a\u9879\u76ee\u7528\u9014\u3001\u5b89\u88c5\u6b65\u9aa4\u3001\u7528\u6cd5<br>\u5206\u652f\u547d\u540d \u8bed\u4e49\u5316\uff0c\u5982 feat\/user-profile, fix\/header-bug<br>\u5c0f\u6b65\u63d0\u4ea4 \u6bcf\u6b21 commit \u53ea\u505a\u4e00\u4ef6\u4e8b\uff0c\u907f\u514d\u201c\u5927\u6742\u70e9\u201d<br>\u9891\u7e41 pull \u907f\u514d\u4e0e\u4e3b\u5e72\u504f\u79bb\u592a\u8fdc<br>\ud83d\udd01 \u4e94\u3001\u9047\u5230\u51b2\u7a81\u600e\u4e48\u529e\uff1f<br>git pull origin main\uff08\u5728\u4f60\u7684\u5206\u652f\u4e0a\uff09<br>\u624b\u52a8\u89e3\u51b3\u51b2\u7a81\u6587\u4ef6\uff08\u6807\u8bb0\u4e3a &lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD \u2026 &gt;&gt;&gt;&gt;&gt;&gt;&gt;\uff09<br>git add . \u2192 git commit \u2192 git push<br>\ud83c\udf81 \u9644\u52a0\u5efa\u8bae<br>\u5982\u679c\u662f\u4e2a\u4eba\u9879\u76ee\uff0c\u4e5f\u53ef\u4ee5\u7b80\u5316\u6d41\u7a0b\uff08\u76f4\u63a5\u5728 main \u5f00\u53d1\uff09\uff0c\u4f46\u4ecd\u5efa\u8bae\u5199\u6e05\u6670\u7684 commit \u4fe1\u606f\u3002<br>\u4f7f\u7528 git log &#8211;oneline \u67e5\u770b\u5386\u53f2\u3002<br>\u5b66\u4f1a\u7528 git stash \u4e34\u65f6\u4fdd\u5b58\u672a\u63d0\u4ea4\u66f4\u6539\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u57fa\u7840\u6d41\u7a0b\uff08\u63a8\u8350\u5de5\u4f5c\u6d41\uff09. \u514b\u9686\u4ed3\u5e93\u5230 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-github"],"_links":{"self":[{"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":1,"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":27,"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/posts\/26\/revisions\/27"}],"wp:attachment":[{"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/word.ronrin.cn\/index.php\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}