{"id":15347,"date":"2025-03-12T13:50:32","date_gmt":"2025-03-12T05:50:32","guid":{"rendered":"https:\/\/fgchen.com\/wpedu\/?p=15347"},"modified":"2026-03-30T14:28:39","modified_gmt":"2026-03-30T06:28:39","slug":"%e5%9c%98%e9%9a%8a%e5%88%a9%e7%94%a8github%e5%8d%94%e4%bd%9c%e9%96%8b%e7%99%bc%e8%bb%9f%e9%ab%94%e7%b3%bb%e7%b5%b1","status":"publish","type":"post","link":"https:\/\/fgchen.com\/wpedu\/2025\/03\/%e5%9c%98%e9%9a%8a%e5%88%a9%e7%94%a8github%e5%8d%94%e4%bd%9c%e9%96%8b%e7%99%bc%e8%bb%9f%e9%ab%94%e7%b3%bb%e7%b5%b1\/","title":{"rendered":"\u5718\u968a\u5229\u7528GitHub\u5354\u4f5c\u958b\u767c\u8edf\u9ad4\u7cfb\u7d71"},"content":{"rendered":"\n<p>\u5718\u900f\u904e GitHub \u5354\u540c\u958b\u767c\u5c08\u6848\u7684\u57fa\u672c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. \u5efa\u7acb\u8207\u8a2d\u5b9a\u5c08\u6848<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>(1) \u5efa\u7acb GitHub Repository<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u767b\u5165 GitHub\uff0c\u9ede\u9078 <strong>\u300cNew Repository\u300d<\/strong> \u5efa\u7acb\u4e00\u500b\u65b0\u7684\u5132\u5b58\u5eab\u3002<\/li>\n\n\n\n<li>\u8a2d\u5b9a Repository\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>\u540d\u7a31\uff08Repository Name\uff09<\/strong><\/li>\n\n\n\n<li><strong>\u53ef\u898b\u6027\uff08Public \u6216 Private\uff09<\/strong><\/li>\n\n\n\n<li><strong>README \u6587\u4ef6\uff08\u5efa\u8b70\u52fe\u9078\u4ee5\u521d\u59cb\u5316\u5c08\u6848\uff09<\/strong><\/li>\n\n\n\n<li><strong>.gitignore\uff08\u9078\u64c7\u9069\u5408\u7684\u958b\u767c\u74b0\u5883\uff0c\u4f8b\u5982 Python\u3001Node.js\uff09<\/strong><\/li>\n\n\n\n<li><strong>License\uff08\u9078\u64c7\u9069\u7576\u7684\u958b\u6e90\u6388\u6b0a\uff0c\u4f8b\u5982 MIT\u3001GPL\uff09<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>(2) \u9080\u8acb\u5354\u4f5c\u8005<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728 GitHub <strong>\u300cSettings\u300d\u2192\u300cManage Access\u300d<\/strong> \u4e2d\uff0c\u9080\u8acb\u5176\u4ed6\u958b\u767c\u8005\u52a0\u5165\u5c08\u6848\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u514b\u9686\uff08Clone\uff09\u5132\u5b58\u5eab\u5230\u672c\u6a5f<\/strong><\/h2>\n\n\n\n<p>\u5728\u5718\u968a\u6210\u54e1\u7684\u958b\u767c\u74b0\u5883\u4e2d\uff0c\u57f7\u884c\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git clone https:\/\/github.com\/your-username\/repository-name.git\n<\/pre>\n\n\n\n<p>\u9032\u5165\u5c08\u6848\u8cc7\u6599\u593e\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd repository-name\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. \u5206\u652f\u7ba1\u7406\u8207\u958b\u767c\u6d41\u7a0b<\/strong><\/h2>\n\n\n\n<p>GitHub \u5354\u4f5c\u7684\u57fa\u672c\u958b\u767c\u6a21\u5f0f\u70ba <strong>Git Flow<\/strong>\uff0c\u4f7f\u7528\u5206\u652f\u9032\u884c\u958b\u767c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>(1) \u5275\u5efa\u65b0\u5206\u652f<\/strong><\/h3>\n\n\n\n<p>\u6bcf\u4f4d\u958b\u767c\u8005\u61c9\u5728 <code>main<\/code>\uff08\u6216 <code>develop<\/code>\uff09\u5206\u652f\u7684\u57fa\u790e\u4e0a\u5efa\u7acb\u81ea\u5df1\u7684\u529f\u80fd\u5206\u652f\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git checkout -b feature-branch\n<\/pre>\n\n\n\n<p>\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git checkout -b feature-login-system\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>(2) \u63d0\u4ea4\uff08Commit\uff09\u8207\u63a8\u9001\uff08Push\uff09\u8b8a\u66f4<\/strong><\/h3>\n\n\n\n<p>\u958b\u767c\u904e\u7a0b\u4e2d\uff0c\u5b9a\u671f\u63d0\u4ea4\u8b8a\u66f4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git add .\ngit commit -m \"\u65b0\u589e\u767b\u5165\u529f\u80fd\"\n<\/pre>\n\n\n\n<p>\u5c07\u8b8a\u66f4\u63a8\u9001\u5230 GitHub\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git push origin feature-branch\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. \u63d0\u4ea4 Pull Request\uff08PR\uff09\u4e26\u9032\u884c\u5be9\u67e5<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>(1) \u5275\u5efa Pull Request<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728 GitHub \u4e0a\uff0c\u9032\u5165\u5c08\u6848\u9801\u9762\uff0c\u9ede\u9078 <strong>\u300cPull Requests\u300d<\/strong> \u2192 <strong>\u300cNew Pull Request\u300d<\/strong>\u3002<\/li>\n\n\n\n<li>\u9078\u64c7 <strong>\u300cBase\u300d<\/strong> \u70ba <code>main<\/code>\uff08\u6216 <code>develop<\/code>\uff09\uff0c<strong>\u300cCompare\u300d<\/strong> \u9078\u64c7\u81ea\u5df1\u7684 <code>feature-branch<\/code>\u3002<\/li>\n\n\n\n<li>\u586b\u5beb PR \u63cf\u8ff0\uff0c\u8aaa\u660e\u8b8a\u66f4\u5167\u5bb9\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>(2) \u4ee3\u78bc\u5be9\u67e5\uff08Code Review\uff09<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5718\u968a\u6210\u54e1\u53ef\u5728 PR \u4e0b\u7559\u8a00\u3001\u5efa\u8b70\u4fee\u6539\u3002<\/li>\n\n\n\n<li>\u82e5\u9700\u4fee\u6539\uff0c\u958b\u767c\u8005\u53ef\u5728\u672c\u6a5f\u4fee\u6b63\u5f8c <code>commit<\/code>\uff0c\u518d\u6b21 <code>push<\/code>\uff0cPR \u6703\u81ea\u52d5\u66f4\u65b0\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>(3) \u5408\u4f75\uff08Merge\uff09\u5206\u652f<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PR \u7372\u5f97\u6279\u51c6\u5f8c\uff0c\u9ede\u9078 <strong>\u300cMerge pull request\u300d<\/strong> \u9032\u884c\u5408\u4f75\u3002<\/li>\n\n\n\n<li>\u522a\u9664 <code>feature-branch<\/code>\uff1a <code>git branch -d feature-branch git push origin --delete feature-branch<\/code><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. \u540c\u6b65\u6700\u65b0\u8b8a\u66f4<\/strong><\/h2>\n\n\n\n<p>\u6240\u6709\u5718\u968a\u6210\u54e1\u61c9\u5b9a\u671f\u62c9\u53d6\u6700\u65b0\u7a0b\u5f0f\u78bc\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git checkout main\ngit pull origin main\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. \u7248\u672c\u63a7\u5236\u8207\u767c\u5e03<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f7f\u7528 GitHub Releases<\/strong> \u767c\u5e03\u65b0\u7248\u672c\uff0c\u6a19\u8a18 <code>tag<\/code> \u7248\u672c\u865f\uff1a <code>git tag -a v1.0 -m \"First stable release\" git push origin v1.0<\/code><\/li>\n\n\n\n<li><strong>\u4f7f\u7528 Issue Tracker<\/strong> \u8ffd\u8e64 Bug \u6216\u65b0\u529f\u80fd\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\ud83d\udd25 GitHub \u5354\u4f5c\u958b\u767c\u5be6\u6230<\/strong><\/h1>\n\n\n\n<p>\u8b93\u6211\u5011\u900f\u904e\u4e00\u500b\u865b\u64ec\u5718\u968a\u4f86\u5be6\u6230 GitHub \u5354\u4f5c\u958b\u767c\u3002\u5047\u8a2d\u6709\u4e00\u500b <strong>\u300c\u5718\u968a\u5c08\u6848\uff1a\u7c21\u55ae\u5f85\u8fa6\u4e8b\u9805\uff08To-Do List\uff09Web \u61c9\u7528\u300d<\/strong>\uff0c\u5718\u968a\u6709\u4e09\u4f4d\u6210\u54e1\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Alice\uff08\u8ca0\u8cac UI \u8a2d\u8a08\u8207\u524d\u7aef\u958b\u767c\uff09<\/strong><\/li>\n\n\n\n<li><strong>Bob\uff08\u8ca0\u8cac\u5f8c\u7aef API\uff09<\/strong><\/li>\n\n\n\n<li><strong>Charlie\uff08\u8ca0\u8cac\u8cc7\u6599\u5eab\u8207\u6e2c\u8a66\uff09<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1\ufe0f\u20e3 \u7531 Team Leader\uff08Alice\uff09\u5efa\u7acb\u5c08\u6848<\/strong><\/h2>\n\n\n\n<p><strong>Alice \u5728 GitHub \u4e0a\u5efa\u7acb\u4e00\u500b\u65b0\u5132\u5b58\u5eab\uff08Repository\uff09<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u524d\u5f80 <a href=\"https:\/\/github.com\/\">GitHub<\/a> \u5efa\u7acb\u65b0\u5132\u5b58\u5eab\uff0c\u540d\u7a31\u8a2d\u5b9a\u70ba <code>todo-app<\/code>\u3002<\/li>\n\n\n\n<li>\u8a2d\u5b9a\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>Public \u6216 Private<\/strong>\uff08\u4f9d\u5718\u968a\u9700\u6c42\uff09<\/li>\n\n\n\n<li><strong>\u521d\u59cb\u5316 README.md<\/strong><\/li>\n\n\n\n<li><strong>\u9078\u64c7 .gitignore \u2192 Node.js<\/strong><\/li>\n\n\n\n<li><strong>\u9078\u64c7 MIT License<\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u9080\u8acb Bob \u548c Charlie \u4f5c\u70ba\u5354\u4f5c\u8005<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u9032\u5165 <strong>Settings \u2192 Manage Access<\/strong>\uff0c\u65b0\u589e Bob \u548c Charlie \u70ba\u5354\u4f5c\u8005\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2\ufe0f\u20e3 \u5718\u968a\u6210\u54e1\u514b\u9686\u5c08\u6848\u5230\u672c\u6a5f<\/strong><\/h2>\n\n\n\n<p>Bob \u548c Charlie \u5728\u5404\u81ea\u7684\u96fb\u8166\u4e0a\u57f7\u884c\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git clone https:\/\/github.com\/Alice\/todo-app.git\ncd todo-app\n<\/pre>\n\n\n\n<p>\u62c9\u53d6\u6700\u65b0\u8b8a\u66f4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git pull origin main\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3\ufe0f\u20e3 \u5efa\u7acb\u958b\u767c\u5206\u652f<\/strong><\/h2>\n\n\n\n<p>Alice\u3001Bob\u3001Charlie \u5206\u5225\u5efa\u7acb\u81ea\u5df1\u7684\u529f\u80fd\u5206\u652f\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Alice &#8211; \u8a2d\u8a08\u524d\u7aef UI<\/strong><\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git checkout -b feature-frontend-ui\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Bob &#8211; \u958b\u767c\u5f8c\u7aef API<\/strong><\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git checkout -b feature-backend-api\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Charlie &#8211; \u5efa\u7acb\u8cc7\u6599\u5eab<\/strong><\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git checkout -b feature-database\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4\ufe0f\u20e3 \u5404\u81ea\u958b\u767c\u8207\u63d0\u4ea4\u8b8a\u66f4<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Alice \u8a2d\u8a08\u524d\u7aef UI<\/strong><\/h3>\n\n\n\n<p>Alice \u5728 <code>index.html<\/code> \u548c <code>style.css<\/code> \u65b0\u589e\u57fa\u672c UI\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!-- index.html -->\n&lt;!DOCTYPE html>\n&lt;html lang=\"zh-TW\">\n&lt;head>\n    &lt;meta charset=\"UTF-8\">\n    &lt;title>To-Do List&lt;\/title>\n    &lt;link rel=\"stylesheet\" href=\"style.css\">\n&lt;\/head>\n&lt;body>\n    &lt;h1>\u5f85\u8fa6\u4e8b\u9805&lt;\/h1>\n    &lt;input type=\"text\" id=\"taskInput\" placeholder=\"\u8f38\u5165\u5f85\u8fa6\u4e8b\u9805\">\n    &lt;button onclick=\"addTask()\">\u65b0\u589e&lt;\/button>\n    &lt;ul id=\"taskList\">&lt;\/ul>\n&lt;\/body>\n&lt;\/html>\n<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/* style.css *\/\nbody { font-family: Arial, sans-serif; text-align: center; }\nul { list-style: none; padding: 0; }\n<\/pre>\n\n\n\n<p>\u63d0\u4ea4\u8b8a\u66f4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git add .\ngit commit -m \"\u65b0\u589e\u524d\u7aef UI\"\ngit push origin feature-frontend-ui\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Bob \u958b\u767c\u5f8c\u7aef API<\/strong><\/h3>\n\n\n\n<p>Bob \u5efa\u7acb <code>server.js<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ server.js\nconst express = require('express');\nconst app = express();\nconst PORT = 3000;\n\napp.use(express.json());\n\nlet tasks = [];\n\napp.get('\/tasks', (req, res) => {\n    res.json(tasks);\n});\n\napp.post('\/tasks', (req, res) => {\n    tasks.push(req.body.task);\n    res.status(201).json({ message: 'Task added' });\n});\n\napp.listen(PORT, () => {\n    console.log(`Server running on http:\/\/localhost:${PORT}`);\n});\n<\/pre>\n\n\n\n<p>\u63d0\u4ea4\u8b8a\u66f4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git add .\ngit commit -m \"\u5efa\u7acb\u5f8c\u7aef API\"\ngit push origin feature-backend-api\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Charlie \u8a2d\u8a08\u8cc7\u6599\u5eab<\/strong><\/h3>\n\n\n\n<p>Charlie \u5efa\u7acb <code>database.js<\/code>\uff0c\u6a21\u64ec SQLite\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ database.js\nconst sqlite3 = require('sqlite3').verbose();\nconst db = new sqlite3.Database(':memory:');\n\ndb.serialize(() => {\n    db.run(\"CREATE TABLE tasks (id INTEGER PRIMARY KEY, name TEXT)\");\n});\n\nmodule.exports = db;\n<\/pre>\n\n\n\n<p>\u63d0\u4ea4\u8b8a\u66f4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git add .\ngit commit -m \"\u65b0\u589e SQLite \u8cc7\u6599\u5eab\"\ngit push origin feature-database\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5\ufe0f\u20e3 \u63d0\u4ea4 Pull Request\uff08PR\uff09\u4e26\u9032\u884c Code Review<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Alice \u5275\u5efa PR<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u9032\u5165 GitHub\uff0c\u9ede\u9078 <strong>Pull Requests \u2192 New Pull Request<\/strong>\u3002<\/li>\n\n\n\n<li><strong>\u9078\u64c7 base\uff1a<code>main<\/code>\uff0ccompare\uff1a<code>feature-frontend-ui<\/code><\/strong>\u3002<\/li>\n\n\n\n<li>\u586b\u5beb\u63cf\u8ff0\uff1a\u300c\u65b0\u589e\u5f85\u8fa6\u4e8b\u9805\u524d\u7aef UI\u300d\u4e26\u63d0\u4ea4 PR\u3002<\/li>\n\n\n\n<li>\u901a\u77e5 Bob \u548c Charlie \u9032\u884c Code Review\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Bob \u548c Charlie \u9032\u884c Code Review<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Bob \u548c Charlie \u6aa2\u67e5 UI \u7a0b\u5f0f\u78bc\u4e26\u7559\u8a00\u5efa\u8b70\uff0c\u4f8b\u5982\uff1a\n<ul class=\"wp-block-list\">\n<li>\u300c\u8acb\u5728 <code>input<\/code> \u6b04\u4f4d\u52a0\u4e0a <code>maxlength=100<\/code>\uff0c\u907f\u514d\u904e\u9577\u8f38\u5165\u3002\u300d<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Alice \u4fee\u6539\u5f8c\u518d <code>commit<\/code>\uff0cPR \u6703\u81ea\u52d5\u66f4\u65b0\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5408\u4f75 PR<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Code Review \u5b8c\u6210\u5f8c\uff0cAlice \u9ede\u9078 <strong>\u300cMerge pull request\u300d<\/strong> \u3002<\/li>\n\n\n\n<li>\u522a\u9664\u5df2\u5408\u4f75\u7684 <code>feature-frontend-ui<\/code> \u5206\u652f\uff1a <code>git branch -d feature-frontend-ui git push origin --delete feature-frontend-ui<\/code><\/li>\n<\/ol>\n\n\n\n<p>Bob \u548c Charlie \u4f9d\u76f8\u540c\u6d41\u7a0b\u63d0\u4ea4 PR\uff0c\u7d93\u904e Review \u5f8c\u5408\u4f75\u81f3 <code>main<\/code>\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6\ufe0f\u20e3 \u5718\u968a\u540c\u6b65\u6700\u65b0\u8b8a\u66f4<\/strong><\/h2>\n\n\n\n<p>\u6240\u6709\u6210\u54e1\u62c9\u53d6\u6700\u65b0\u7a0b\u5f0f\u78bc\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git checkout main\ngit pull origin main\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>7\ufe0f\u20e3 \u767c\u5e03\u5c08\u6848<\/strong><\/h2>\n\n\n\n<p>Alice \u5728 GitHub <strong>Releases<\/strong> \u6a19\u8a18\u7248\u672c\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git tag -a v1.0 -m \"\u521d\u7248\u5f85\u8fa6\u4e8b\u9805\u61c9\u7528\"\ngit push origin v1.0\n<\/pre>\n\n\n\n<p>\u5c08\u6848\u6210\u529f\u5354\u4f5c\u5b8c\u6210\uff01 \ud83c\udf89<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u9019\u662f\u5b8c\u6574\u7684 GitHub \u5354\u4f5c\u958b\u767c\u5be6\u6230\u6d41\u7a0b\uff0c\u900f\u904e\u5718\u968a\u5206\u5de5\u3001Git Flow\u3001PR \u5be9\u67e5\uff0c\u8b93\u5c08\u6848\u958b\u767c\u66f4\u6709\u7cfb\u7d71\uff01 \ud83d\ude80<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5718\u900f\u904e GitHub \u5354\u540c\u958b\u767c\u5c08\u6848\u7684\u57fa\u672c\u6d41\u7a0b\u5982\u4e0b\uff1a 1. \u5efa\u7acb\u8207\u8a2d\u5b9a\u5c08\u6848 (1) &hellip; <\/p>\n","protected":false},"author":1,"featured_media":15365,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[266],"tags":[],"class_list":["post-15347","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-266"],"_links":{"self":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/15347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/comments?post=15347"}],"version-history":[{"count":1,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/15347\/revisions"}],"predecessor-version":[{"id":15348,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/15347\/revisions\/15348"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/media\/15365"}],"wp:attachment":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/media?parent=15347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/categories?post=15347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/tags?post=15347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}