{"id":782,"date":"2026-06-25T05:31:54","date_gmt":"2026-06-25T05:31:54","guid":{"rendered":"https:\/\/hyc.eshachem.com\/program\/?page_id=782"},"modified":"2026-06-30T02:54:32","modified_gmt":"2026-06-30T02:54:32","slug":"5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81","status":"publish","type":"page","link":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/","title":{"rendered":"5. \u6bb5\u843d\u5c0f\u7bc0 &#8211; \u65e5\u5e38\u5de5\u4f5c\u6d41"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"1-%e5%85%a8%e6%8c%87%e4%bb%a4%e5%b0%8d%e7%85%a7\">1. \u5168\u6307\u4ee4\u5c0d\u7167<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%f0%9f%8c%8d-%e5%9f%ba%e7%a4%8e%e9%96%8b%e6%8b%93%ef%bc%9a%e6%9c%ac%e5%9c%b0%e5%88%9d%e5%a7%8b%e5%8c%96%e8%88%87%e9%9b%b2%e7%ab%af%e9%80%a3%e7%b5%90\">\ud83c\udf0d \u57fa\u790e\u958b\u62d3\uff1a\u672c\u5730\u521d\u59cb\u5316\u8207\u96f2\u7aef\u9023\u7d50<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>git init<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u5728\u76ee\u524d\u7684\u8cc7\u6599\u593e\u547c\u53eb\u6642\u5149\u6a5f\uff0c\u521d\u59cb\u5316\u4e00\u500b\u5168\u65b0\u7684\u672c\u5730 Git \u5132\u5b58\u5eab\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git branch -M main<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u5c07\u672c\u5730\u7684\u9810\u8a2d\u4e3b\u5206\u652f\u540d\u7a31\u6b63\u540d\u70ba <code>main<\/code>\uff08\u8207 GitHub \u96f2\u7aef\u540c\u6b65\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git remote add origin [\u7db2\u5740]<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u544a\u8a34\u672c\u5730 Git \u9060\u7aef\u7e3d\u5009\u5eab\uff08origin\uff09\u7684 GPS \u5730\u5740\u5728\u54ea\u88e1\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%f0%9f%93%a6-%e6%97%a5%e5%b8%b8%e6%89%93%e5%8c%85%ef%bc%9a%e8%a8%98%e9%8c%84%e9%80%b2%e5%ba%a6%e8%88%87%e4%bf%ae%e8%a3%9c\">\ud83d\udce6 \u65e5\u5e38\u6253\u5305\uff1a\u8a18\u9304\u9032\u5ea6\u8207\u4fee\u88dc<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>git add index.html<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u628a\u300c\u7279\u5b9a\u6a94\u6848\u300d\uff08\u5982 <code>index.html<\/code>\uff09\u653e\u9032\u66ab\u5b58\u5340\uff08\u6e96\u5099\u88dd\u7bb1\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git add .<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u628a\u76ee\u524d\u8cc7\u6599\u593e\u4e0b\u300c\u6240\u6709\u6709\u8b8a\u52d5\u7684\u6a94\u6848\u300d\u4e00\u6b21\u5168\u90e8\u88dd\u7bb1\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git commit -m \"\u4f60\u7684\u8a0a\u606f\"<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u5e6b\u9019\u6b21\u7684\u7bb1\u5b50\u8cbc\u4e0a\u51fa\u8ca8\u6a19\u7c64\uff08\u5beb\u4e0b\u7d00\u9304\u8a0a\u606f\uff09\uff0c\u6b63\u5f0f\u5efa\u7acb\u4e00\u500b\u6642\u5149\u7d00\u9304\u9ede\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git rm --cached [\u6a94\u540d]<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u3010\u7dca\u6025\u6551\u63f4\u3011\u628a\u4e0d\u5c0f\u5fc3\u88dd\u932f\u7bb1\u7684\u6a94\u6848\u5f9e Git \u8ffd\u8e64\u6e05\u55ae\u4e2d\u5254\u9664\uff0c\u4f46\u672c\u5730\u96fb\u8166\u7684\u5be6\u9ad4\u6a94\u6848\u4f9d\u7136\u4fdd\u7559\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%f0%9f%9a%9a-%e7%89%a9%e6%b5%81%e6%90%ac%e9%81%8b%ef%bc%9a%e6%9c%ac%e5%9c%b0%e8%88%87%e9%9b%b2%e7%ab%af%e7%9a%84%e7%94%9f%e6%ad%bb%e5%90%8c%e6%ad%a5\">\ud83d\ude9a \u7269\u6d41\u642c\u904b\uff1a\u672c\u5730\u8207\u96f2\u7aef\u7684\u751f\u6b7b\u540c\u6b65<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>git clone [\u7db2\u5740]<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u8907\u88fd\u6574\u5ea7\u96f2\u7aef\u5009\u5eab\u3002\u901a\u5e38\u662f\u7528\u5728\u63db\u65b0\u96fb\u8166\u3001\u6216\u52a0\u5165\u65b0\u5c08\u6848\u7684\u7b2c\u4e00\u5929\uff0c\u628a\u96f2\u7aef\u7a0b\u5f0f\u78bc\u548c\u6b77\u53f2\u7d00\u9304\u539f\u5c01\u4e0d\u52d5\u4e0b\u8f09\u4e0b\u4f86\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git fetch<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u5c08\u9580\u7528\u4f86\u300c\u6253\u63a2\u6575\u60c5\u300d\u3002\u53ea\u628a\u96f2\u7aef\u7684\u6700\u65b0\u7d00\u9304\u6293\u4e0b\u4f86\u770b\uff0c\u4f46\u7d55\u5c0d\u4e0d\u6703\u4e82\u52d5\u4f60\u672c\u5730\u6b63\u5728\u5beb\u7684\u6a94\u6848\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git pull<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u6b63\u5f0f\u6536\u5272\u3002\u628a\u96f2\u7aef\u6700\u65b0\u7684\u9032\u5ea6\u6293\u4e0b\u4f86\uff0c\u4e26\u4e14<strong>\u76f4\u63a5\u81ea\u52d5\u5408\u4f75<\/strong>\u5230\u4f60\u672c\u5730\u7684\u6a94\u6848\u88e1\uff08<code>Pull = Fetch + Merge<\/code>\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git push -u origin main<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u3010\u7b2c\u4e00\u6b21\u5927\u767c\u8eca\u3011\u628a\u672c\u5730 <code>main<\/code> \u5206\u652f\u7684\u9032\u5ea6\u63a8\u4e0a\u96f2\u7aef\uff0c\u4e26\u7528 <code>-u<\/code> \u8a2d\u5b9a\u597d\u9810\u8a2d\u5c0e\u822a\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git push<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u4e4b\u5f8c\u65e5\u5e38\u9001\u8ca8\u3002\u56e0\u70ba\u8a2d\u5b9a\u597d\u4e86\u5c0e\u822a\uff0c\u76f4\u63a5\u8f38\u5165 <code>git push<\/code> \u5c31\u6703\u81ea\u52d5\u628a\u9032\u5ea6\u9001\u5230\u5c0d\u61c9\u7684\u96f2\u7aef\u5206\u652f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%f0%9f%8c%8c-%e6%99%82%e7%a9%ba%e7%a9%bf%e6%a2%ad%ef%bc%9abranch-%e5%88%86%e6%94%af%e6%93%8d%e4%bd%9c\">\ud83c\udf0c \u6642\u7a7a\u7a7f\u68ad\uff1aBranch \u5206\u652f\u64cd\u4f5c<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>git branch<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u7167\u93e1\u5b50\u3002\u6aa2\u67e5\u76ee\u524d\u5c08\u6848\u6709\u54ea\u4e9b\u5e73\u884c\u5b87\u5b99\uff08\u5206\u652f\uff09\uff0c\u4ee5\u53ca\u81ea\u5df1\u6b63\u8eab\u8655\u5728\u54ea\u4e00\u500b\uff08\u6709 <code>*<\/code> \u865f\u8005\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git checkout -b feature\/cart<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u6495\u88c2\u6642\u7a7a\u3002\u5efa\u7acb\u4e00\u500b\u540d\u70ba <code>feature\/cart<\/code> \u7684\u65b0\u5206\u652f\uff0c\u4e26<strong>\u76f4\u63a5\u5207\u63db<\/strong>\u904e\u53bb\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git checkout main<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u6642\u7a7a\u8df3\u8e8d\u3002\u77ac\u9593\u5207\u63db\u56de\u65e2\u6709\u7684 <code>main<\/code> \u4e3b\u7dda\u5b87\u5b99\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git merge feature\/cart<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u5b87\u5b99\u878d\u5408\u3002\u7ad9\u5728 <code>main<\/code> \u7684\u7acb\u5834\uff0c\u628a <code>feature\/cart<\/code> \u5e73\u884c\u5b87\u5b99\u7684\u7814\u767c\u6210\u679c\u541e\u9032\u4f86\u5408\u4f75\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>git push origin feature\/cart<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u610f\u7fa9\uff1a<\/strong> \u5206\u652f\u5099\u4efd\u3002\u628a\u672c\u5730\u7684 <code>feature\/cart<\/code> \u5206\u652f\u55ae\u7368\u63a8\u4e0a GitHub \u96f2\u7aef\u5099\u4efd\u6216\u5206\u4eab\u7d66\u540c\u4e8b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-%e5%b7%a5%e4%bd%9c%e6%b5%81\">2. \u5de5\u4f5c\u6d41<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5149\u80cc\u6307\u4ee4\u6c92\u7528\uff0c\u6211\u5011\u628a\u9019\u4e9b\u6307\u4ee4\u4e32\u8d77\u4f86\u3002\u60f3\u50cf\u4f60\u4eca\u5929\u9032\u516c\u53f8\u4e0a\u5de5\uff0c\u6a19\u6e96\u7684\u52d5\u4f5c\u6d41\u7a0b\u9577\u9019\u6a23\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u9019\u4e9b\u6307\u4ee4\u7686\u53ef\u76f4\u63a5\u64cd\u4f5c\u65bcVSCode\u7684\u7d42\u7aef\u6a5f\uff0c\u4e14\u901a\u5e38\u5de6\u5074\u6703\u51fa\u73fegit icon\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%f0%9f%8c%85-%e6%97%a9%e4%b8%8a-0930-%e9%96%8b%e5%b7%a5%e8%b5%b7%e6%89%8b%e5%bc%8f\">\ud83c\udf05 \u65e9\u4e0a 09:30 \u2014\u2014 \u958b\u5de5\u8d77\u624b\u5f0f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u5230\u516c\u53f8\uff0c\u7b2c\u4e00\u4ef6\u4e8b\u7d55\u5c0d\u4e0d\u662f\u76f4\u63a5\u5beb Code\uff0c\u800c\u662f\u5148\u62c9\u53d6\u5718\u968a\u6628\u665a\u6709\u6c92\u6709\u66f4\u65b0\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">git checkout main\ngit pull\n<\/code><\/span><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id=\"%f0%9f%91%a8%f0%9f%92%bb-%e4%b8%ad%e5%8d%88-1100-%e6%8e%a5%e5%88%b0%e6%96%b0%e4%bb%bb%e5%8b%99%ef%bc%88%e9%96%8b%e7%99%bc%e8%b3%bc%e7%89%a9%e8%bb%8a%ef%bc%89\">\ud83d\udc68\u200d\ud83d\udcbb \u4e2d\u5348 11:00 \u2014\u2014 \u63a5\u5230\u65b0\u4efb\u52d9\uff08\u958b\u767c\u8cfc\u7269\u8eca\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u80fd\u5728\u4e3b\u7dda\u4e82\u641e\uff0c\u7acb\u523b\u958b\u95e2\u5e73\u884c\u5b87\u5b99\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">git checkout -b feature\/cart\n<span class=\"hljs-comment\"># \u958b\u59cb\u5feb\u6a02\u5730\u5beb\u7a0b\u5f0f\u78bc\u3001\u4fee\u6539\u6a94\u6848...<\/span>\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id=\"%e2%98%95-%e4%b8%8b%e5%8d%88-1500-%e5%af%ab%e5%a5%bd%e4%b8%80%e5%80%8b%e9%9a%8e%e6%ae%b5%ef%bc%8c%e5%ad%98%e6%aa%94%e6%89%93%e5%8c%85\">\u2615 \u4e0b\u5348 15:00 \u2014\u2014 \u5beb\u597d\u4e00\u500b\u968e\u6bb5\uff0c\u5b58\u6a94\u6253\u5305<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5beb\u5230\u4e00\u534a\uff0c\u96a8\u624b Commit \u5b58\u6a94\u662f\u597d\u7fd2\u6163\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">git add .\ngit commit -m <span class=\"hljs-string\">\"feat: complete cart UI design\"<\/span>\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\" id=\"%f0%9f%8f%a2-%e4%b8%8b%e5%8d%88-1700-%e5%8a%9f%e8%83%bd%e9%96%8b%e7%99%bc%e5%ae%8c%e7%95%a2%ef%bc%8c%e6%ba%96%e5%82%99%e5%90%88%e4%bd%b5%e4%b8%a6%e9%80%81%e8%b2%a8\">\ud83c\udfe2 \u4e0b\u5348 17:00 \u2014\u2014 \u529f\u80fd\u958b\u767c\u5b8c\u7562\uff0c\u6e96\u5099\u5408\u4f75\u4e26\u9001\u8ca8<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u529f\u80fd\u5728\u5206\u652f\u6e2c\u8a66\u90fd\u901a\u904e\u4e86\uff0c\u5207\u56de\u4e3b\u7dda\u4e26\u5408\u4f75\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u6ce8\u610f! \u5728\u7b2c\u516d\u7ae0\u6211\u5011\u6703\u8aaa\u5230PR (MR)\uff0c\u5982\u679c\u4f60\u7684\u5c08\u6848\u662f\u8207\u4ed6\u4eba\u5354\u540c\u958b\u767c\uff0c\u8acb\u7565\u904e\u9019\u6b65\u9a5f\uff0c<strong>\u5207\u52ff<\/strong>\u81ea\u884c\u5207\u63db\u81f3main\u9032\u884cMerge !<\/p>\n<\/blockquote>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">git checkout main\ngit merge feature\/cart\n<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\u78ba\u8a8d\u6c92\u554f\u984c\u5f8c\uff0c\u98a8\u5149\u5730\u63a8\u4e0a GitHub \u4e0b\u73ed\uff01<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u5982\u679c\u662f\u5354\u540c\u958b\u767c\uff0c\u9019\u6b65\u9a5f\u8acb\u6539\u6210 <code>git push origin &lt;branch-name&gt;<\/code><\/p>\n<\/blockquote>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">git push\n<\/code><\/span><\/pre>\n\n\n<h2 class=\"wp-block-heading\" id=\"%e6%9c%ac%e7%ab%a0%e5%b0%8f%e7%b5%90\">\u672c\u7ae0\u5c0f\u7d50<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u9019 15 \u500b\u6307\u4ee4\uff0c\u662f\u4f60\u884c\u8d70 Git \u6c5f\u6e56\u7684\u6838\u5fc3\u3002\u5efa\u8b70\u4f60\u53ef\u4ee5\u628a\u9019\u7bc7\u6587\u7ae0\u52a0\u5165\u66f8\u7c64\uff0c\u4ee5\u5f8c\u53ea\u8981\u5728\u7d42\u7aef\u6a5f\u5361\u4f4f\uff0c\u96a8\u6642\u5207\u56de\u4f86\u50cf\u67e5\u5b57\u5178\u4e00\u6a23\u770b\u4e00\u773c\uff0c\u4f60\u5c31\u80fd\u7acb\u523b\u627e\u56de\u7bc0\u594f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u8457\u4e0b\u4e00\u7ae0\uff0c\u6211\u5011\u5c31\u8981\u6b63\u5f0f\u9032\u5165\u5354\u540c\u958b\u767c\u7684\u4e16\u754c\u4e86\uff0c\u4f86\u804a\u804a\uff0c\u5982\u4f55\u5728\u591a\u4eba\u958b\u767c\u6642\u9084\u7dad\u8b77\u5c08\u6848\u7684\u54c1\u8cea\u5462? \u2013<strong> PR \u3001 MR<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u5168\u6307\u4ee4\u5c0d\u7167 \ud83c\udf0d \u57fa\u790e\u958b\u62d3\uff1a\u672c\u5730\u521d\u59cb\u5316\u8207\u96f2\u7aef\u9023\u7d50 \ud83d\udce6 \u65e5\u5e38\u6253\u5305\uff1a\u8a18\u9304\u9032\u5ea6\u8207\u4fee\u88dc \ud83d\ude9a \u7269\u6d41\u642c\u904b\uff1a\u672c\u5730\u8207\u96f2\u7aef\u7684\u751f\u6b7b\u540c\u6b65 \ud83c\udf0c \u6642\u7a7a\u7a7f\u68ad\uff1aBranch \u5206\u652f\u64cd\u4f5c 2. \u5de5\u4f5c\u6d41 \u5149\u80cc\u6307\u4ee4\u6c92\u7528\uff0c\u6211\u5011\u628a\u9019\u4e9b\u6307\u4ee4\u4e32\u8d77\u4f86\u3002\u60f3\u50cf\u4f60\u4eca\u5929\u9032\u516c\u53f8\u4e0a\u5de5\uff0c\u6a19\u6e96\u7684\u52d5\u4f5c\u6d41\u7a0b\u9577\u9019\u6a23\uff1a \u9019\u4e9b\u6307\u4ee4\u7686\u53ef\u76f4\u63a5\u64cd\u4f5c\u65bcVSCode\u7684\u7d42\u7aef\u6a5f\uff0c\u4e14\u901a\u5e38\u5de6\u5074\u6703\u51fa\u73fegit icon\u3002 \ud83c\udf05 \u65e9\u4e0a 09:30 \u2014\u2014 \u958b\u5de5\u8d77\u624b\u5f0f \u4e00\u5230\u516c\u53f8\uff0c\u7b2c\u4e00\u4ef6\u4e8b\u7d55\u5c0d\u4e0d\u662f\u76f4\u63a5\u5beb Code\uff0c\u800c\u662f\u5148\u62c9\u53d6\u5718\u968a\u6628\u665a\u6709\u6c92\u6709\u66f4\u65b0\uff1a \ud83d\udc68\u200d\ud83d\udcbb \u4e2d\u5348 11:00 \u2014\u2014 \u63a5\u5230\u65b0\u4efb\u52d9\uff08\u958b\u767c\u8cfc\u7269\u8eca\uff09 \u4e0d\u80fd\u5728\u4e3b\u7dda\u4e82\u641e\uff0c\u7acb\u523b\u958b\u95e2\u5e73\u884c\u5b87\u5b99\uff1a \u2615 \u4e0b\u5348 15:00 \u2014\u2014 \u5beb\u597d\u4e00\u500b\u968e\u6bb5\uff0c\u5b58\u6a94\u6253\u5305 \u5beb\u5230\u4e00\u534a\uff0c\u96a8\u624b Commit \u5b58\u6a94\u662f\u597d\u7fd2\u6163\uff1a \ud83c\udfe2 \u4e0b\u5348 17:00 \u2014\u2014 \u529f\u80fd\u958b\u767c\u5b8c\u7562\uff0c\u6e96\u5099\u5408\u4f75\u4e26\u9001\u8ca8 \u529f\u80fd\u5728\u5206\u652f\u6e2c\u8a66\u90fd\u901a\u904e\u4e86\uff0c\u5207\u56de\u4e3b\u7dda\u4e26\u5408\u4f75\uff1a \u6ce8\u610f! \u5728\u7b2c\u516d\u7ae0\u6211\u5011\u6703\u8aaa\u5230PR (MR)\uff0c\u5982\u679c\u4f60\u7684\u5c08\u6848\u662f\u8207\u4ed6\u4eba\u5354\u540c\u958b\u767c\uff0c\u8acb\u7565\u904e\u9019\u6b65\u9a5f\uff0c\u5207\u52ff\u81ea\u884c\u5207\u63db\u81f3main\u9032\u884cMerge ! \u78ba\u8a8d\u6c92\u554f\u984c\u5f8c\uff0c\u98a8\u5149\u5730\u63a8\u4e0a GitHub \u4e0b\u73ed\uff01 \u5982\u679c\u662f\u5354\u540c\u958b\u767c\uff0c\u9019\u6b65\u9a5f\u8acb\u6539\u6210 git push origin &lt;branch-name&gt; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":744,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"class_list":["post-782","page","type-page","status-publish","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"1. \u5168\u6307\u4ee4\u5c0d\u7167 \ud83c\udf0d \u57fa\u790e\u958b\u62d3\uff1a\u672c\u5730\u521d\u59cb\u5316\u8207\u96f2\u7aef\u9023\u7d50 git init \u610f\u7fa9\uff1a \u5728\u76ee\u524d\u7684\u8cc7\u6599\u593e\u547c\u53eb\u6642\u5149\u6a5f\uff0c\u521d\u59cb\u5316\u4e00\u500b\u5168\u65b0\u7684\u672c\u5730 Git \u5132\u5b58\u5eab\u3002 git branch -M main \u610f\u7fa9\uff1a \u5c07\u672c\u5730\u7684\u9810\u8a2d\u4e3b\u5206\u652f\u540d\u7a31\u6b63\u540d\u70ba main\uff08\u8207 GitHub \u96f2\u7aef\u540c\u6b65\uff09\u3002 git remote add origin [\u7db2\u5740] \u610f\u7fa9\uff1a \u544a\u8a34\u672c\u5730 Git \u9060\u7aef\u7e3d\u5009\u5eab\uff08origin\uff09\u7684 GPS \u5730\u5740\u5728\u54ea\u88e1\u3002 \ud83d\udce6 \u65e5\u5e38\u6253\u5305\uff1a\u8a18\u9304\u9032\u5ea6\u8207\u4fee\u88dc git add index.html \u610f\u7fa9\uff1a \u628a\u300c\u7279\u5b9a\u6a94\u6848\u300d\uff08\u5982 index.html\uff09\u653e\u9032\u66ab\u5b58\u5340\uff08\u6e96\u5099\u88dd\u7bb1\uff09\u3002 git add . \u610f\u7fa9\uff1a \u628a\u76ee\u524d\u8cc7\u6599\u593e\u4e0b\u300c\u6240\u6709\u6709\u8b8a\u52d5\u7684\u6a94\u6848\u300d\u4e00\u6b21\u5168\u90e8\u88dd\u7bb1\u3002 git commit -m &quot;\u4f60\u7684\u8a0a\u606f&quot; \u610f\u7fa9\uff1a \u5e6b\u9019\u6b21\u7684\u7bb1\u5b50\u8cbc\u4e0a\u51fa\u8ca8\u6a19\u7c64\uff08\u5beb\u4e0b\u7d00\u9304\u8a0a\u606f\uff09\uff0c\u6b63\u5f0f\u5efa\u7acb\u4e00\u500b\u6642\u5149\u7d00\u9304\u9ede\u3002 git rm --cached [\u6a94\u540d] \u610f\u7fa9\uff1a \u3010\u7dca\u6025\u6551\u63f4\u3011\u628a\u4e0d\u5c0f\u5fc3\u88dd\u932f\u7bb1\u7684\u6a94\u6848\u5f9e\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"google-site-verification\" content=\"-324YR5tomynX5FeTW2lTMHIX0KmPBvpxjXpOhXwi1Q\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"HyC Wiki - Technical articles\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"5. \u6bb5\u843d\u5c0f\u7bc0 \u2013 \u65e5\u5e38\u5de5\u4f5c\u6d41 - HyC Wiki\" \/>\n\t\t<meta property=\"og:description\" content=\"1. \u5168\u6307\u4ee4\u5c0d\u7167 \ud83c\udf0d \u57fa\u790e\u958b\u62d3\uff1a\u672c\u5730\u521d\u59cb\u5316\u8207\u96f2\u7aef\u9023\u7d50 git init \u610f\u7fa9\uff1a \u5728\u76ee\u524d\u7684\u8cc7\u6599\u593e\u547c\u53eb\u6642\u5149\u6a5f\uff0c\u521d\u59cb\u5316\u4e00\u500b\u5168\u65b0\u7684\u672c\u5730 Git \u5132\u5b58\u5eab\u3002 git branch -M main \u610f\u7fa9\uff1a \u5c07\u672c\u5730\u7684\u9810\u8a2d\u4e3b\u5206\u652f\u540d\u7a31\u6b63\u540d\u70ba main\uff08\u8207 GitHub \u96f2\u7aef\u540c\u6b65\uff09\u3002 git remote add origin [\u7db2\u5740] \u610f\u7fa9\uff1a \u544a\u8a34\u672c\u5730 Git \u9060\u7aef\u7e3d\u5009\u5eab\uff08origin\uff09\u7684 GPS \u5730\u5740\u5728\u54ea\u88e1\u3002 \ud83d\udce6 \u65e5\u5e38\u6253\u5305\uff1a\u8a18\u9304\u9032\u5ea6\u8207\u4fee\u88dc git add index.html \u610f\u7fa9\uff1a \u628a\u300c\u7279\u5b9a\u6a94\u6848\u300d\uff08\u5982 index.html\uff09\u653e\u9032\u66ab\u5b58\u5340\uff08\u6e96\u5099\u88dd\u7bb1\uff09\u3002 git add . \u610f\u7fa9\uff1a \u628a\u76ee\u524d\u8cc7\u6599\u593e\u4e0b\u300c\u6240\u6709\u6709\u8b8a\u52d5\u7684\u6a94\u6848\u300d\u4e00\u6b21\u5168\u90e8\u88dd\u7bb1\u3002 git commit -m &quot;\u4f60\u7684\u8a0a\u606f&quot; \u610f\u7fa9\uff1a \u5e6b\u9019\u6b21\u7684\u7bb1\u5b50\u8cbc\u4e0a\u51fa\u8ca8\u6a19\u7c64\uff08\u5beb\u4e0b\u7d00\u9304\u8a0a\u606f\uff09\uff0c\u6b63\u5f0f\u5efa\u7acb\u4e00\u500b\u6642\u5149\u7d00\u9304\u9ede\u3002 git rm --cached [\u6a94\u540d] \u610f\u7fa9\uff1a \u3010\u7dca\u6025\u6551\u63f4\u3011\u628a\u4e0d\u5c0f\u5fc3\u88dd\u932f\u7bb1\u7684\u6a94\u6848\u5f9e\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"64\" \/>\n\t\t<meta property=\"og:image:height\" content=\"64\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-06-25T05:31:54+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-06-30T02:54:32+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"5. \u6bb5\u843d\u5c0f\u7bc0 \u2013 \u65e5\u5e38\u5de5\u4f5c\u6d41 - HyC Wiki\" \/>\n\t\t<meta name=\"twitter:description\" content=\"1. \u5168\u6307\u4ee4\u5c0d\u7167 \ud83c\udf0d \u57fa\u790e\u958b\u62d3\uff1a\u672c\u5730\u521d\u59cb\u5316\u8207\u96f2\u7aef\u9023\u7d50 git init \u610f\u7fa9\uff1a \u5728\u76ee\u524d\u7684\u8cc7\u6599\u593e\u547c\u53eb\u6642\u5149\u6a5f\uff0c\u521d\u59cb\u5316\u4e00\u500b\u5168\u65b0\u7684\u672c\u5730 Git \u5132\u5b58\u5eab\u3002 git branch -M main \u610f\u7fa9\uff1a \u5c07\u672c\u5730\u7684\u9810\u8a2d\u4e3b\u5206\u652f\u540d\u7a31\u6b63\u540d\u70ba main\uff08\u8207 GitHub \u96f2\u7aef\u540c\u6b65\uff09\u3002 git remote add origin [\u7db2\u5740] \u610f\u7fa9\uff1a \u544a\u8a34\u672c\u5730 Git \u9060\u7aef\u7e3d\u5009\u5eab\uff08origin\uff09\u7684 GPS \u5730\u5740\u5728\u54ea\u88e1\u3002 \ud83d\udce6 \u65e5\u5e38\u6253\u5305\uff1a\u8a18\u9304\u9032\u5ea6\u8207\u4fee\u88dc git add index.html \u610f\u7fa9\uff1a \u628a\u300c\u7279\u5b9a\u6a94\u6848\u300d\uff08\u5982 index.html\uff09\u653e\u9032\u66ab\u5b58\u5340\uff08\u6e96\u5099\u88dd\u7bb1\uff09\u3002 git add . \u610f\u7fa9\uff1a \u628a\u76ee\u524d\u8cc7\u6599\u593e\u4e0b\u300c\u6240\u6709\u6709\u8b8a\u52d5\u7684\u6a94\u6848\u300d\u4e00\u6b21\u5168\u90e8\u88dd\u7bb1\u3002 git commit -m &quot;\u4f60\u7684\u8a0a\u606f&quot; \u610f\u7fa9\uff1a \u5e6b\u9019\u6b21\u7684\u7bb1\u5b50\u8cbc\u4e0a\u51fa\u8ca8\u6a19\u7c64\uff08\u5beb\u4e0b\u7d00\u9304\u8a0a\u606f\uff09\uff0c\u6b63\u5f0f\u5efa\u7acb\u4e00\u500b\u6642\u5149\u7d00\u9304\u9ede\u3002 git rm --cached [\u6a94\u540d] \u610f\u7fa9\uff1a \u3010\u7dca\u6025\u6551\u63f4\u3011\u628a\u4e0d\u5c0f\u5fc3\u88dd\u932f\u7bb1\u7684\u6a94\u6848\u5f9e\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/#listItem\",\"name\":\"\\u3010Git \\\/ GitHub \\u6559\\u5b78\\u3011\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/#listItem\",\"position\":2,\"name\":\"\\u3010Git \\\/ GitHub \\u6559\\u5b78\\u3011\",\"item\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\\\/#listItem\",\"name\":\"5. \\u6bb5\\u843d\\u5c0f\\u7bc0 &#8211; \\u65e5\\u5e38\\u5de5\\u4f5c\\u6d41\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\\\/#listItem\",\"position\":3,\"name\":\"5. \\u6bb5\\u843d\\u5c0f\\u7bc0 &#8211; \\u65e5\\u5e38\\u5de5\\u4f5c\\u6d41\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/#listItem\",\"name\":\"\\u3010Git \\\/ GitHub \\u6559\\u5b78\\u3011\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\",\"name\":\"H.Y. Chen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"H.Y. Chen\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\\\/#webpage\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\\\/\",\"name\":\"5. \\u6bb5\\u843d\\u5c0f\\u7bc0 \\u2013 \\u65e5\\u5e38\\u5de5\\u4f5c\\u6d41 - HyC Wiki\",\"description\":\"1. \\u5168\\u6307\\u4ee4\\u5c0d\\u7167 \\ud83c\\udf0d \\u57fa\\u790e\\u958b\\u62d3\\uff1a\\u672c\\u5730\\u521d\\u59cb\\u5316\\u8207\\u96f2\\u7aef\\u9023\\u7d50 git init \\u610f\\u7fa9\\uff1a \\u5728\\u76ee\\u524d\\u7684\\u8cc7\\u6599\\u593e\\u547c\\u53eb\\u6642\\u5149\\u6a5f\\uff0c\\u521d\\u59cb\\u5316\\u4e00\\u500b\\u5168\\u65b0\\u7684\\u672c\\u5730 Git \\u5132\\u5b58\\u5eab\\u3002 git branch -M main \\u610f\\u7fa9\\uff1a \\u5c07\\u672c\\u5730\\u7684\\u9810\\u8a2d\\u4e3b\\u5206\\u652f\\u540d\\u7a31\\u6b63\\u540d\\u70ba main\\uff08\\u8207 GitHub \\u96f2\\u7aef\\u540c\\u6b65\\uff09\\u3002 git remote add origin [\\u7db2\\u5740] \\u610f\\u7fa9\\uff1a \\u544a\\u8a34\\u672c\\u5730 Git \\u9060\\u7aef\\u7e3d\\u5009\\u5eab\\uff08origin\\uff09\\u7684 GPS \\u5730\\u5740\\u5728\\u54ea\\u88e1\\u3002 \\ud83d\\udce6 \\u65e5\\u5e38\\u6253\\u5305\\uff1a\\u8a18\\u9304\\u9032\\u5ea6\\u8207\\u4fee\\u88dc git add index.html \\u610f\\u7fa9\\uff1a \\u628a\\u300c\\u7279\\u5b9a\\u6a94\\u6848\\u300d\\uff08\\u5982 index.html\\uff09\\u653e\\u9032\\u66ab\\u5b58\\u5340\\uff08\\u6e96\\u5099\\u88dd\\u7bb1\\uff09\\u3002 git add . \\u610f\\u7fa9\\uff1a \\u628a\\u76ee\\u524d\\u8cc7\\u6599\\u593e\\u4e0b\\u300c\\u6240\\u6709\\u6709\\u8b8a\\u52d5\\u7684\\u6a94\\u6848\\u300d\\u4e00\\u6b21\\u5168\\u90e8\\u88dd\\u7bb1\\u3002 git commit -m \\\"\\u4f60\\u7684\\u8a0a\\u606f\\\" \\u610f\\u7fa9\\uff1a \\u5e6b\\u9019\\u6b21\\u7684\\u7bb1\\u5b50\\u8cbc\\u4e0a\\u51fa\\u8ca8\\u6a19\\u7c64\\uff08\\u5beb\\u4e0b\\u7d00\\u9304\\u8a0a\\u606f\\uff09\\uff0c\\u6b63\\u5f0f\\u5efa\\u7acb\\u4e00\\u500b\\u6642\\u5149\\u7d00\\u9304\\u9ede\\u3002 git rm --cached [\\u6a94\\u540d] \\u610f\\u7fa9\\uff1a \\u3010\\u7dca\\u6025\\u6551\\u63f4\\u3011\\u628a\\u4e0d\\u5c0f\\u5fc3\\u88dd\\u932f\\u7bb1\\u7684\\u6a94\\u6848\\u5f9e\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\\\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\\\/#breadcrumblist\"},\"datePublished\":\"2026-06-25T05:31:54+00:00\",\"dateModified\":\"2026-06-30T02:54:32+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#website\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/\",\"name\":\"HyC Wiki\",\"description\":\"Technical articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"5. \u6bb5\u843d\u5c0f\u7bc0 \u2013 \u65e5\u5e38\u5de5\u4f5c\u6d41 - HyC Wiki","description":"1. \u5168\u6307\u4ee4\u5c0d\u7167 \ud83c\udf0d \u57fa\u790e\u958b\u62d3\uff1a\u672c\u5730\u521d\u59cb\u5316\u8207\u96f2\u7aef\u9023\u7d50 git init \u610f\u7fa9\uff1a \u5728\u76ee\u524d\u7684\u8cc7\u6599\u593e\u547c\u53eb\u6642\u5149\u6a5f\uff0c\u521d\u59cb\u5316\u4e00\u500b\u5168\u65b0\u7684\u672c\u5730 Git \u5132\u5b58\u5eab\u3002 git branch -M main \u610f\u7fa9\uff1a \u5c07\u672c\u5730\u7684\u9810\u8a2d\u4e3b\u5206\u652f\u540d\u7a31\u6b63\u540d\u70ba main\uff08\u8207 GitHub \u96f2\u7aef\u540c\u6b65\uff09\u3002 git remote add origin [\u7db2\u5740] \u610f\u7fa9\uff1a \u544a\u8a34\u672c\u5730 Git \u9060\u7aef\u7e3d\u5009\u5eab\uff08origin\uff09\u7684 GPS \u5730\u5740\u5728\u54ea\u88e1\u3002 \ud83d\udce6 \u65e5\u5e38\u6253\u5305\uff1a\u8a18\u9304\u9032\u5ea6\u8207\u4fee\u88dc git add index.html \u610f\u7fa9\uff1a \u628a\u300c\u7279\u5b9a\u6a94\u6848\u300d\uff08\u5982 index.html\uff09\u653e\u9032\u66ab\u5b58\u5340\uff08\u6e96\u5099\u88dd\u7bb1\uff09\u3002 git add . \u610f\u7fa9\uff1a \u628a\u76ee\u524d\u8cc7\u6599\u593e\u4e0b\u300c\u6240\u6709\u6709\u8b8a\u52d5\u7684\u6a94\u6848\u300d\u4e00\u6b21\u5168\u90e8\u88dd\u7bb1\u3002 git commit -m \"\u4f60\u7684\u8a0a\u606f\" \u610f\u7fa9\uff1a \u5e6b\u9019\u6b21\u7684\u7bb1\u5b50\u8cbc\u4e0a\u51fa\u8ca8\u6a19\u7c64\uff08\u5beb\u4e0b\u7d00\u9304\u8a0a\u606f\uff09\uff0c\u6b63\u5f0f\u5efa\u7acb\u4e00\u500b\u6642\u5149\u7d00\u9304\u9ede\u3002 git rm --cached [\u6a94\u540d] \u610f\u7fa9\uff1a \u3010\u7dca\u6025\u6551\u63f4\u3011\u628a\u4e0d\u5c0f\u5fc3\u88dd\u932f\u7bb1\u7684\u6a94\u6848\u5f9e","canonical_url":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"-324YR5tomynX5FeTW2lTMHIX0KmPBvpxjXpOhXwi1Q","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program#listItem","position":1,"name":"Home","item":"https:\/\/hyc.eshachem.com\/program","nextItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/#listItem","name":"\u3010Git \/ GitHub \u6559\u5b78\u3011"}},{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/#listItem","position":2,"name":"\u3010Git \/ GitHub \u6559\u5b78\u3011","item":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/","nextItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/#listItem","name":"5. \u6bb5\u843d\u5c0f\u7bc0 &#8211; \u65e5\u5e38\u5de5\u4f5c\u6d41"},"previousItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/#listItem","position":3,"name":"5. \u6bb5\u843d\u5c0f\u7bc0 &#8211; \u65e5\u5e38\u5de5\u4f5c\u6d41","previousItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/#listItem","name":"\u3010Git \/ GitHub \u6559\u5b78\u3011"}}]},{"@type":"Person","@id":"https:\/\/hyc.eshachem.com\/program\/#person","name":"H.Y. Chen","image":{"@type":"ImageObject","@id":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g","width":96,"height":96,"caption":"H.Y. Chen"}},{"@type":"WebPage","@id":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/#webpage","url":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/","name":"5. \u6bb5\u843d\u5c0f\u7bc0 \u2013 \u65e5\u5e38\u5de5\u4f5c\u6d41 - HyC Wiki","description":"1. \u5168\u6307\u4ee4\u5c0d\u7167 \ud83c\udf0d \u57fa\u790e\u958b\u62d3\uff1a\u672c\u5730\u521d\u59cb\u5316\u8207\u96f2\u7aef\u9023\u7d50 git init \u610f\u7fa9\uff1a \u5728\u76ee\u524d\u7684\u8cc7\u6599\u593e\u547c\u53eb\u6642\u5149\u6a5f\uff0c\u521d\u59cb\u5316\u4e00\u500b\u5168\u65b0\u7684\u672c\u5730 Git \u5132\u5b58\u5eab\u3002 git branch -M main \u610f\u7fa9\uff1a \u5c07\u672c\u5730\u7684\u9810\u8a2d\u4e3b\u5206\u652f\u540d\u7a31\u6b63\u540d\u70ba main\uff08\u8207 GitHub \u96f2\u7aef\u540c\u6b65\uff09\u3002 git remote add origin [\u7db2\u5740] \u610f\u7fa9\uff1a \u544a\u8a34\u672c\u5730 Git \u9060\u7aef\u7e3d\u5009\u5eab\uff08origin\uff09\u7684 GPS \u5730\u5740\u5728\u54ea\u88e1\u3002 \ud83d\udce6 \u65e5\u5e38\u6253\u5305\uff1a\u8a18\u9304\u9032\u5ea6\u8207\u4fee\u88dc git add index.html \u610f\u7fa9\uff1a \u628a\u300c\u7279\u5b9a\u6a94\u6848\u300d\uff08\u5982 index.html\uff09\u653e\u9032\u66ab\u5b58\u5340\uff08\u6e96\u5099\u88dd\u7bb1\uff09\u3002 git add . \u610f\u7fa9\uff1a \u628a\u76ee\u524d\u8cc7\u6599\u593e\u4e0b\u300c\u6240\u6709\u6709\u8b8a\u52d5\u7684\u6a94\u6848\u300d\u4e00\u6b21\u5168\u90e8\u88dd\u7bb1\u3002 git commit -m \"\u4f60\u7684\u8a0a\u606f\" \u610f\u7fa9\uff1a \u5e6b\u9019\u6b21\u7684\u7bb1\u5b50\u8cbc\u4e0a\u51fa\u8ca8\u6a19\u7c64\uff08\u5beb\u4e0b\u7d00\u9304\u8a0a\u606f\uff09\uff0c\u6b63\u5f0f\u5efa\u7acb\u4e00\u500b\u6642\u5149\u7d00\u9304\u9ede\u3002 git rm --cached [\u6a94\u540d] \u610f\u7fa9\uff1a \u3010\u7dca\u6025\u6551\u63f4\u3011\u628a\u4e0d\u5c0f\u5fc3\u88dd\u932f\u7bb1\u7684\u6a94\u6848\u5f9e","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/hyc.eshachem.com\/program\/#website"},"breadcrumb":{"@id":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/#breadcrumblist"},"datePublished":"2026-06-25T05:31:54+00:00","dateModified":"2026-06-30T02:54:32+00:00"},{"@type":"WebSite","@id":"https:\/\/hyc.eshachem.com\/program\/#website","url":"https:\/\/hyc.eshachem.com\/program\/","name":"HyC Wiki","description":"Technical articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/hyc.eshachem.com\/program\/#person"}}]},"og:locale":"en_US","og:site_name":"HyC Wiki - Technical articles","og:type":"article","og:title":"5. \u6bb5\u843d\u5c0f\u7bc0 \u2013 \u65e5\u5e38\u5de5\u4f5c\u6d41 - HyC Wiki","og:description":"1. \u5168\u6307\u4ee4\u5c0d\u7167 \ud83c\udf0d \u57fa\u790e\u958b\u62d3\uff1a\u672c\u5730\u521d\u59cb\u5316\u8207\u96f2\u7aef\u9023\u7d50 git init \u610f\u7fa9\uff1a \u5728\u76ee\u524d\u7684\u8cc7\u6599\u593e\u547c\u53eb\u6642\u5149\u6a5f\uff0c\u521d\u59cb\u5316\u4e00\u500b\u5168\u65b0\u7684\u672c\u5730 Git \u5132\u5b58\u5eab\u3002 git branch -M main \u610f\u7fa9\uff1a \u5c07\u672c\u5730\u7684\u9810\u8a2d\u4e3b\u5206\u652f\u540d\u7a31\u6b63\u540d\u70ba main\uff08\u8207 GitHub \u96f2\u7aef\u540c\u6b65\uff09\u3002 git remote add origin [\u7db2\u5740] \u610f\u7fa9\uff1a \u544a\u8a34\u672c\u5730 Git \u9060\u7aef\u7e3d\u5009\u5eab\uff08origin\uff09\u7684 GPS \u5730\u5740\u5728\u54ea\u88e1\u3002 \ud83d\udce6 \u65e5\u5e38\u6253\u5305\uff1a\u8a18\u9304\u9032\u5ea6\u8207\u4fee\u88dc git add index.html \u610f\u7fa9\uff1a \u628a\u300c\u7279\u5b9a\u6a94\u6848\u300d\uff08\u5982 index.html\uff09\u653e\u9032\u66ab\u5b58\u5340\uff08\u6e96\u5099\u88dd\u7bb1\uff09\u3002 git add . \u610f\u7fa9\uff1a \u628a\u76ee\u524d\u8cc7\u6599\u593e\u4e0b\u300c\u6240\u6709\u6709\u8b8a\u52d5\u7684\u6a94\u6848\u300d\u4e00\u6b21\u5168\u90e8\u88dd\u7bb1\u3002 git commit -m &quot;\u4f60\u7684\u8a0a\u606f&quot; \u610f\u7fa9\uff1a \u5e6b\u9019\u6b21\u7684\u7bb1\u5b50\u8cbc\u4e0a\u51fa\u8ca8\u6a19\u7c64\uff08\u5beb\u4e0b\u7d00\u9304\u8a0a\u606f\uff09\uff0c\u6b63\u5f0f\u5efa\u7acb\u4e00\u500b\u6642\u5149\u7d00\u9304\u9ede\u3002 git rm --cached [\u6a94\u540d] \u610f\u7fa9\uff1a \u3010\u7dca\u6025\u6551\u63f4\u3011\u628a\u4e0d\u5c0f\u5fc3\u88dd\u932f\u7bb1\u7684\u6a94\u6848\u5f9e","og:url":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/","og:image":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png","og:image:secure_url":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png","og:image:width":64,"og:image:height":64,"article:published_time":"2026-06-25T05:31:54+00:00","article:modified_time":"2026-06-30T02:54:32+00:00","twitter:card":"summary_large_image","twitter:title":"5. \u6bb5\u843d\u5c0f\u7bc0 \u2013 \u65e5\u5e38\u5de5\u4f5c\u6d41 - HyC Wiki","twitter:description":"1. \u5168\u6307\u4ee4\u5c0d\u7167 \ud83c\udf0d \u57fa\u790e\u958b\u62d3\uff1a\u672c\u5730\u521d\u59cb\u5316\u8207\u96f2\u7aef\u9023\u7d50 git init \u610f\u7fa9\uff1a \u5728\u76ee\u524d\u7684\u8cc7\u6599\u593e\u547c\u53eb\u6642\u5149\u6a5f\uff0c\u521d\u59cb\u5316\u4e00\u500b\u5168\u65b0\u7684\u672c\u5730 Git \u5132\u5b58\u5eab\u3002 git branch -M main \u610f\u7fa9\uff1a \u5c07\u672c\u5730\u7684\u9810\u8a2d\u4e3b\u5206\u652f\u540d\u7a31\u6b63\u540d\u70ba main\uff08\u8207 GitHub \u96f2\u7aef\u540c\u6b65\uff09\u3002 git remote add origin [\u7db2\u5740] \u610f\u7fa9\uff1a \u544a\u8a34\u672c\u5730 Git \u9060\u7aef\u7e3d\u5009\u5eab\uff08origin\uff09\u7684 GPS \u5730\u5740\u5728\u54ea\u88e1\u3002 \ud83d\udce6 \u65e5\u5e38\u6253\u5305\uff1a\u8a18\u9304\u9032\u5ea6\u8207\u4fee\u88dc git add index.html \u610f\u7fa9\uff1a \u628a\u300c\u7279\u5b9a\u6a94\u6848\u300d\uff08\u5982 index.html\uff09\u653e\u9032\u66ab\u5b58\u5340\uff08\u6e96\u5099\u88dd\u7bb1\uff09\u3002 git add . \u610f\u7fa9\uff1a \u628a\u76ee\u524d\u8cc7\u6599\u593e\u4e0b\u300c\u6240\u6709\u6709\u8b8a\u52d5\u7684\u6a94\u6848\u300d\u4e00\u6b21\u5168\u90e8\u88dd\u7bb1\u3002 git commit -m &quot;\u4f60\u7684\u8a0a\u606f&quot; \u610f\u7fa9\uff1a \u5e6b\u9019\u6b21\u7684\u7bb1\u5b50\u8cbc\u4e0a\u51fa\u8ca8\u6a19\u7c64\uff08\u5beb\u4e0b\u7d00\u9304\u8a0a\u606f\uff09\uff0c\u6b63\u5f0f\u5efa\u7acb\u4e00\u500b\u6642\u5149\u7d00\u9304\u9ede\u3002 git rm --cached [\u6a94\u540d] \u610f\u7fa9\uff1a \u3010\u7dca\u6025\u6551\u63f4\u3011\u628a\u4e0d\u5c0f\u5fc3\u88dd\u932f\u7bb1\u7684\u6a94\u6848\u5f9e","twitter:image":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png"},"aioseo_meta_data":{"post_id":"782","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-07-28 14:27:59","updated":"2026-07-28 14:27:59"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hyc.eshachem.com\/program\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/\" title=\"\u3010Git \/ GitHub \u6559\u5b78\u3011\">\u3010Git \/ GitHub \u6559\u5b78\u3011<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t5. \u6bb5\u843d\u5c0f\u7bc0 \u2013 \u65e5\u5e38\u5de5\u4f5c\u6d41\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/hyc.eshachem.com\/program"},{"label":"\u3010Git \/ GitHub \u6559\u5b78\u3011","link":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/"},{"label":"5. \u6bb5\u843d\u5c0f\u7bc0 &#8211; \u65e5\u5e38\u5de5\u4f5c\u6d41","link":"https:\/\/hyc.eshachem.com\/program\/%e3%80%90git-github-%e6%95%99%e5%ad%b8%e3%80%91\/5-%e6%8c%87%e4%bb%a4%e8%a4%87%e7%bf%92-%e6%97%a5%e5%b8%b8%e5%b7%a5%e4%bd%9c%e6%b5%81\/"}],"_links":{"self":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages\/782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":7,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages\/782\/revisions"}],"predecessor-version":[{"id":870,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages\/782\/revisions\/870"}],"up":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages\/744"}],"wp:attachment":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/media?parent=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}