{"id":60653,"date":"2026-01-16T01:05:20","date_gmt":"2026-01-15T17:05:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/60653.html"},"modified":"2026-01-16T01:05:20","modified_gmt":"2026-01-15T17:05:20","slug":"git%e6%93%8d%e4%bd%9c%e6%89%8b%e5%86%8c%ef%bc%88%e5%85%b6%e5%ae%9e%e4%b8%80%e7%82%b9%e9%83%bd%e4%b8%8d%e9%9a%be%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/60653.html","title":{"rendered":"Git\u64cd\u4f5c\u624b\u518c\uff08\u5176\u5b9e\u4e00\u70b9\u90fd\u4e0d\u96be\uff09"},"content":{"rendered":"<h3 id=\"eN9NT\">\u76ee\u5f55<\/h3>\n<li id=\"u97a8bcde\">SSH Key \u914d\u7f6e&#xff08;GitHub\/GitLab \u53cc\u5e73\u53f0&#xff09;<\/li>\n<li id=\"u784c998b\">Git \u57fa\u7840\u5168\u5c40\u914d\u7f6e<\/li>\n<li id=\"u90a63edf\">Git \u6838\u5fc3\u57fa\u7840\u64cd\u4f5c<\/li>\n<li id=\"ua7eae644\">Git \u5206\u652f\u7ba1\u7406<\/li>\n<li id=\"u02ee078d\">Git \u8fdb\u9636\u64cd\u4f5c<\/li>\n<li id=\"u7cc3a727\">\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848<\/li>\n<hr id=\"TDsQQ\" \/>\n<h3 id=\"neDSf\">1. SSH Key \u914d\u7f6e&#xff08;GitHub\/GitLab \u53cc\u5e73\u53f0&#xff09;<\/h3>\n<h4 id=\"rIzRW\">1.1 \u6838\u5fc3\u8bf4\u660e<\/h4>\n<p id=\"u7a7080c4\">SSH Key \u7528\u4e8e\u672c\u5730\u4e0eGit\u670d\u52a1\u5668&#xff08;GitHub\/GitLab&#xff09;\u7684\u514d\u5bc6\u8ba4\u8bc1&#xff0c;\u63a8\u8350\u4e3a\u4e0d\u540c\u5e73\u53f0\u914d\u7f6e\u72ec\u7acbKey\u4ee5\u907f\u514d\u51b2\u7a81&#xff08;\u672c\u6587\u4ee5\u300cGitHub\u4f7f\u7528id_ed25519\u3001GitLab\u4f7f\u7528id_rsa_gitlab\u300d\u4e3a\u4f8b&#xff09;\u3002\u5f53\u7136&#xff0c;\u5982\u679c\u4f60\u89c9\u5f97\u8fd9\u4e00\u90e8\u5206\u6bd4\u8f83\u96be\u61c2\u6216\u8005\u503e\u5411\u4e8e\u4f7f\u7528https\u7684\u65b9\u6cd5\u76f4\u63a5\u8fdb\u884cclone&#xff0c;\u90a3\u8fd9\u4e00\u90e8\u5206\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8df3\u8fc7~<\/p>\n<h4 id=\"KG0eB\">1.2 \u64cd\u4f5c\u6b65\u9aa4<\/h4>\n<h5 id=\"MgOqT\">1.2.1 \u68c0\u67e5\u672c\u5730\u5df2\u6709SSH Key<\/h5>\n<p id=\"ua19a2e9b\">\u6253\u5f00Git Bash&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b.ssh\u76ee\u5f55\u6587\u4ef6&#xff1a;<\/p>\n<p>ls -al ~\/.ssh <\/p>\n<ul>\n<li id=\"u54c94369\">\u82e5\u5b58\u5728id_ed25519&#xff08;GitHub\u79c1\u94a5&#xff09;\u3001id_rsa_gitlab&#xff08;GitLab\u79c1\u94a5&#xff09;&#xff0c;\u8df3\u8fc7\u300c\u751f\u6210Key\u300d\u6b65\u9aa4&#xff1b;<\/li>\n<li id=\"u7198b36e\">\u82e5\u4e0d\u5b58\u5728&#xff0c;\u6309\u5bf9\u5e94\u5e73\u53f0\u751f\u6210Key\u3002<\/li>\n<\/ul>\n<h5 id=\"FiEAv\">1.2.2 \u751f\u6210SSH Key&#xff08;\u6309\u9700&#xff09;<\/h5>\n<h6 id=\"he3xb\">&#xff08;1&#xff09;\u751f\u6210GitHub Key&#xff08;ED25519\u7b97\u6cd5&#xff0c;\u66f4\u5b89\u5168&#xff09;<\/h6>\n<p>ssh-keygen -t ed25519 -C &#034;\u4f60\u7684\u90ae\u7bb1&#064;xxx.com&#034; -f ~\/.ssh\/id_ed25519 <\/p>\n<ul>\n<li id=\"u111467f1\">\u6267\u884c\u540e\u6309\u63d0\u793a\u56de\u8f66&#xff08;\u5bc6\u7801\u53ef\u7559\u7a7a&#xff0c;\u4e5f\u53ef\u8bbe\u7f6e\u5bc6\u94a5\u5bc6\u7801\u589e\u5f3a\u5b89\u5168\u6027&#xff09;&#xff1b;<\/li>\n<li id=\"u7b30e06d\">\u751f\u6210\u6587\u4ef6&#xff1a;id_ed25519&#xff08;\u79c1\u94a5&#xff0c;\u4fdd\u5bc6&#xff09;\u3001id_ed25519.pub&#xff08;\u516c\u94a5&#xff0c;\u9700\u914d\u7f6e\u5230GitHub&#xff09;\u3002<\/li>\n<\/ul>\n<h6 id=\"p7z0s\">&#xff08;2&#xff09;\u751f\u6210GitLab Key&#xff08;RSA\u7b97\u6cd5&#xff0c;\u517c\u5bb9\u66f4\u5e7f&#xff09;<\/h6>\n<p>ssh-keygen -t rsa -C &#034;\u4f60\u7684\u90ae\u7bb1&#064;xxx.com&#034; -f ~\/.ssh\/id_rsa_gitlab <\/p>\n<ul>\n<li id=\"uf12dcfcc\">\u751f\u6210\u6587\u4ef6&#xff1a;id_rsa_gitlab&#xff08;\u79c1\u94a5&#xff09;\u3001id_rsa_gitlab.pub&#xff08;\u516c\u94a5&#xff0c;\u9700\u914d\u7f6e\u5230GitLab&#xff09;\u3002<\/li>\n<\/ul>\n<h5 id=\"G9bds\">1.2.3 \u914d\u7f6eSSH Config\u6587\u4ef6&#xff08;\u533a\u5206\u53cc\u5e73\u53f0&#xff09;<\/h5>\n<p id=\"u511779d6\">\u7279\u522b\u8bf4\u660e&#xff1a;\u6b64\u5904\u5199\u7684\u662fgithub\u548cgitlab&#xff0c;\u4f46\u62d3\u5c55\u5230\u66f4\u591a\u7684\u4ee3\u7801\u4ed3\u5e93\u5e73\u53f0\u4e5f\u662f\u4e00\u6837\u7684~<\/p>\n<p id=\"u28947528\">\u7f16\u8f91.ssh\/config\u6587\u4ef6&#xff0c;\u8ba9Git\u81ea\u52a8\u5339\u914d\u4e0d\u540c\u5e73\u53f0\u7684Key&#xff1a;<\/p>\n<p># \u6253\u5f00\/\u521b\u5efaconfig\u6587\u4ef6<br \/>\nvim ~\/.ssh\/config <\/p>\n<p id=\"ube065665\">\u8f93\u5165\u4ee5\u4e0b\u914d\u7f6e&#xff08;\u6309i\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u7f16\u8f91\u5b8c\u6210\u540e\u6309Esc&#043;:wq\u4fdd\u5b58\u9000\u51fa&#xff09;&#xff1a;<\/p>\n<p># GitHub \u914d\u7f6e&#xff08;\u4f7f\u7528ED25519\u5bc6\u94a5&#xff09;<br \/>\nHost github.com<br \/>\n  HostName github.com<br \/>\n  User git<br \/>\n  IdentityFile ~\/.ssh\/id_ed25519<br \/>\n  PreferredAuthentications publickey<br \/>\n  IdentitiesOnly yes<\/p>\n<p># GitLab \u914d\u7f6e&#xff08;\u4f7f\u7528RSA\u5bc6\u94a5&#xff09;<br \/>\nHost gitlab.com<br \/>\n  HostName gitlab.com<br \/>\n  User git<br \/>\n  IdentityFile ~\/.ssh\/id_rsa_gitlab<br \/>\n  PreferredAuthentications publickey<br \/>\n  IdentitiesOnly yes<\/p>\n<p># &#xff08;\u53ef\u9009&#xff09;\u516c\u53f8\u79c1\u6709GitLab\u670d\u52a1\u5668\u914d\u7f6e<br \/>\n# Host gitlab.xxx.com<br \/>\n#   HostName gitlab.xxx.com<br \/>\n#   User git<br \/>\n#   IdentityFile ~\/.ssh\/id_rsa_gitlab<br \/>\n#   PreferredAuthentications publickey<br \/>\n#   IdentitiesOnly yes<\/p>\n<p>### \u4e3e\u4e00\u4e2a\u4f8b\u5b50&#xff0c;\u7b14\u8005\u662f\u7528\u5357\u4eac\u5927\u5b66\u7684gitlab&#xff0c;\u90a3\u4e48\u5c31\u5e94\u8be5\u6539\u6210Host git.nju.edu.cn <\/p>\n<h5 id=\"sMtAY\">1.2.4 \u5c06\u516c\u94a5\u6dfb\u52a0\u5230\u4ee3\u7801\u5e73\u53f0<\/h5>\n<h6 id=\"jcWMH\">&#xff08;1&#xff09;GitHub\u6dfb\u52a0\u516c\u94a5<\/h6>\n<li id=\"uda04757f\">\u590d\u5236GitHub\u516c\u94a5\u5185\u5bb9&#xff1a;cat ~\/.ssh\/id_ed25519.pub&#xff1b;<\/li>\n<li id=\"uf97a6216\">\u767b\u5f55GitHub \u2192 \u53f3\u4e0a\u89d2\u5934\u50cf \u2192 Settings \u2192 SSH and GPG keys \u2192 New SSH key&#xff1b;<\/li>\n<li id=\"u3fe728b9\">Title\u586b\u5199\u6807\u8bc6&#xff08;\u5982\u300cWindows-\u529e\u516c\u7535\u8111\u300d&#xff09;&#xff0c;Key\u7c98\u8d34\u590d\u5236\u7684\u516c\u94a5\u5185\u5bb9&#xff0c;\u70b9\u51fbAdd SSH key\u3002<\/li>\n<h6 id=\"XdUdn\">&#xff08;2&#xff09;GitLab\u6dfb\u52a0\u516c\u94a5<\/h6>\n<li id=\"u8c9ac9f5\">\u590d\u5236GitLab\u516c\u94a5\u5185\u5bb9&#xff1a;cat ~\/.ssh\/id_rsa_gitlab.pub&#xff1b;<\/li>\n<li id=\"u2059961c\">\u767b\u5f55GitLab \u2192 \u53f3\u4e0a\u89d2\u5934\u50cf \u2192 Settings \u2192 SSH Keys&#xff1b;<\/li>\n<li id=\"u1dcff408\">Title\u586b\u5199\u6807\u8bc6&#xff0c;Key\u7c98\u8d34\u516c\u94a5\u5185\u5bb9&#xff0c;\u70b9\u51fbAdd key\u3002<\/li>\n<h5 id=\"vyCTA\">1.2.5 \u9a8c\u8bc1SSH\u8fde\u63a5<\/h5>\n<p># \u9a8c\u8bc1GitHub\u8fde\u63a5<br \/>\nssh -T git&#064;github.com<br \/>\n# \u6210\u529f\u63d0\u793a&#xff1a;Hi \u7528\u6237\u540d! You&#039;ve successfully authenticated&#8230;<\/p>\n<p># \u9a8c\u8bc1GitLab\u8fde\u63a5<br \/>\nssh -T git&#064;gitlab.com<br \/>\n# \u6210\u529f\u63d0\u793a&#xff1a;Welcome to GitLab, &#064;\u7528\u6237\u540d! <\/p>\n<hr id=\"nTOXv\" \/>\n<h3 id=\"npyOf\">2. Git \u57fa\u7840\u5168\u5c40\u914d\u7f6e<\/h3>\n<p id=\"u62ff7c76\">\u9996\u6b21\u4f7f\u7528Git\u9700\u914d\u7f6e\u7528\u6237\u540d\u548c\u90ae\u7bb1&#xff08;\u5173\u8054\u63d0\u4ea4\u8bb0\u5f55&#xff09;&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p># \u5168\u5c40\u914d\u7f6e&#xff08;\u6240\u6709\u9879\u76ee\u751f\u6548&#xff09;<br \/>\ngit config &#8211;global user.name &#034;\u4f60\u7684\u7528\u6237\u540d&#034;<br \/>\ngit config &#8211;global user.email &#034;\u4f60\u7684\u90ae\u7bb1&#064;xxx.com&#034;<\/p>\n<p># &#xff08;\u53ef\u9009&#xff09;\u5355\u4e2a\u9879\u76ee\u72ec\u7acb\u914d\u7f6e&#xff08;\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u6267\u884c&#xff09;<br \/>\ngit config user.name &#034;\u4f60\u7684\u7528\u6237\u540d&#034;<br \/>\ngit config user.email &#034;\u4f60\u7684\u90ae\u7bb1&#064;xxx.com&#034;<\/p>\n<p># \u67e5\u770b\u914d\u7f6e\u4fe1\u606f<br \/>\ngit config &#8211;list <\/p>\n<hr id=\"Vhpfk\" \/>\n<h3 id=\"dX0ac\">3. Git \u6838\u5fc3\u57fa\u7840\u64cd\u4f5c<\/h3>\n<h4 id=\"DKqEm\">3.1 \u672c\u5730\u4ed3\u5e93\u521d\u59cb\u5316<\/h4>\n<p id=\"uf0bc254b\">\u9002\u7528\u4e8e\u65b0\u5efa\u9879\u76ee&#xff0c;\u4ece\u96f6\u521b\u5efaGit\u4ed3\u5e93&#xff1a;<\/p>\n<p># 1. \u521b\u5efa\u9879\u76ee\u76ee\u5f55\u5e76\u8fdb\u5165<br \/>\nmkdir my-project &amp;&amp; cd my-project<\/p>\n<p># 2. \u521d\u59cb\u5316Git\u4ed3\u5e93<br \/>\ngit init<\/p>\n<p># 3. \u521b\u5efa\u521d\u59cb\u6587\u4ef6&#xff08;\u793a\u4f8b&#xff09;<br \/>\ntouch README.md<\/p>\n<p># 4. \u63d0\u4ea4\u521d\u59cb\u7248\u672c<br \/>\ngit add README.md  # \u6dfb\u52a0\u6587\u4ef6\u5230\u6682\u5b58\u533a<br \/>\ngit commit -m &#034;init: \u521d\u59cb\u5316\u9879\u76ee&#xff0c;\u6dfb\u52a0README&#034;  # \u63d0\u4ea4\u5230\u672c\u5730\u4ed3\u5e93 <\/p>\n<h4 id=\"d8UiA\">3.2 \u514b\u9686\u8fdc\u7a0b\u4ed3\u5e93<\/h4>\n<p id=\"u7b65be25\">\u9002\u7528\u4e8e\u62c9\u53d6\u5df2\u6709\u8fdc\u7a0b\u9879\u76ee\u5230\u672c\u5730&#xff1a;<\/p>\n<p># SSH\u65b9\u5f0f&#xff08;\u63a8\u8350&#xff0c;\u9700\u914d\u7f6eSSH Key&#xff09;<br \/>\ngit clone git&#064;gitlab.com:\u7528\u6237\u540d\/\u9879\u76ee\u540d.git  # GitLab<br \/>\ngit clone git&#064;github.com:\u7528\u6237\u540d\/\u9879\u76ee\u540d.git  # GitHub<\/p>\n<p># HTTPS\u65b9\u5f0f&#xff08;\u5907\u7528&#xff0c;\u9700\u8f93\u5165\u8d26\u53f7\u5bc6\u7801&#xff09;<br \/>\ngit clone https:\/\/gitlab.com\/\u7528\u6237\u540d\/\u9879\u76ee\u540d.git <\/p>\n<h4 id=\"HmDwY\">3.3 \u62c9\u53d6\u8fdc\u7a0b\u4ee3\u7801&#xff08;Pull&#xff09;<\/h4>\n<p id=\"u09e1b1b3\">\u540c\u6b65\u8fdc\u7a0b\u4ed3\u5e93\u6700\u65b0\u4ee3\u7801\u5230\u672c\u5730&#xff1a;<\/p>\n<p># \u62c9\u53d6\u5f53\u524d\u5206\u652f\u7684\u8fdc\u7a0b\u6700\u65b0\u4ee3\u7801<br \/>\ngit pull<\/p>\n<p># \u663e\u5f0f\u6307\u5b9a\u8fdc\u7a0b\u4ed3\u5e93\u548c\u5206\u652f&#xff08;\u9002\u7528\u4e8e\u672a\u914d\u7f6e\u8ffd\u8e2a\u5206\u652f&#xff09;<br \/>\ngit pull origin main  # main\u4e3a\u5206\u652f\u540d&#xff0c;\u6309\u9700\u66ff\u6362\u4e3amaster\/dev\u7b49 <\/p>\n<h4 id=\"wLsHO\">3.4 \u63a8\u9001\u672c\u5730\u4ee3\u7801&#xff08;Push&#xff09;<\/h4>\n<p id=\"ua18cd2ae\">\u5c06\u672c\u5730\u63d0\u4ea4\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93&#xff1a;<\/p>\n<p># \u9996\u6b21\u63a8\u9001&#xff08;\u914d\u7f6e\u8ffd\u8e2a\u5206\u652f&#xff0c;\u540e\u7eed\u53ef\u7b80\u5316&#xff09;<br \/>\ngit push -u origin main  # -u&#xff1a;\u5173\u8054\u672c\u5730main\u4e0e\u8fdc\u7a0borigin\/main<\/p>\n<p># \u975e\u9996\u6b21\u63a8\u9001&#xff08;\u5df2\u914d\u7f6e\u8ffd\u8e2a\u5206\u652f&#xff09;<br \/>\ngit push<\/p>\n<p># \u663e\u5f0f\u6307\u5b9a\u8fdc\u7a0b\u548c\u5206\u652f&#xff08;\u901a\u7528\u5199\u6cd5&#xff09;<br \/>\ngit push origin main <\/p>\n<hr id=\"IC9TF\" \/>\n<h3 id=\"AfXEd\">4. Git \u5206\u652f\u7ba1\u7406<\/h3>\n<h4 id=\"GQHw0\">4.1 \u5206\u652f\u6838\u5fc3\u6982\u5ff5<\/h4>\n<table id=\"eXFxT\">\n<tbody>\n<tr>\n<td>\n<p id=\"u6d7361e7\">\u5206\u652f\u7c7b\u578b<\/p>\n<\/td>\n<td>\n<p id=\"u27fed81a\">\u7528\u9014<\/p>\n<\/td>\n<td>\n<p id=\"u1675495b\">\u547d\u540d\u89c4\u8303\u793a\u4f8b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p id=\"u26a5f208\">main\/master<\/p>\n<\/td>\n<td>\n<p id=\"u97f7635e\">\u4e3b\u5206\u652f&#xff0c;\u5b58\u653e\u7a33\u5b9a\u53ef\u53d1\u5e03\u4ee3\u7801<\/p>\n<\/td>\n<td>\n<p id=\"u70ba0e35\">&#8211;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p id=\"u0a4412ea\">feature\/xxx<\/p>\n<\/td>\n<td>\n<p id=\"u29db023d\">\u529f\u80fd\u5f00\u53d1\u5206\u652f<\/p>\n<\/td>\n<td>\n<p id=\"ua4b1ef02\">feature\/user-login-20260116<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p id=\"uaa693350\">bugfix\/xxx<\/p>\n<\/td>\n<td>\n<p id=\"u62c138c8\">\u95ee\u9898\u4fee\u590d\u5206\u652f<\/p>\n<\/td>\n<td>\n<p id=\"u0fdedfac\">bugfix\/btn-click-20260116<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p id=\"u197f4268\">test\/xxx<\/p>\n<\/td>\n<td>\n<p id=\"u542fa143\">\u6d4b\u8bd5\u9a8c\u8bc1\u5206\u652f<\/p>\n<\/td>\n<td>\n<p id=\"u902804dd\">test\/config-adjust-20260116<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"S7v9v\">4.2 \u5206\u652f\u57fa\u7840\u64cd\u4f5c<\/h4>\n<h5 id=\"cZ0Nc\">4.2.1 \u67e5\u770b\u5206\u652f<\/h5>\n<p># \u67e5\u770b\u672c\u5730\u5206\u652f&#xff08;*\u6807\u8bb0\u5f53\u524d\u5206\u652f&#xff09;<br \/>\ngit branch<\/p>\n<p># \u67e5\u770b\u672c\u5730&#043;\u8fdc\u7a0b\u5206\u652f<br \/>\ngit branch -a<\/p>\n<p># \u67e5\u770b\u5206\u652f\u8ffd\u8e2a\u5173\u7cfb&#xff08;\u5173\u952e&#xff09;<br \/>\ngit branch -vv <\/p>\n<h5 id=\"IPB3Y\">4.2.2 \u521b\u5efa\u5e76\u5207\u6362\u5206\u652f<\/h5>\n<p># \u65b9\u5f0f1&#xff1a;\u5148\u521b\u5efa\u518d\u5207\u6362<br \/>\ngit branch feature\/test  # \u521b\u5efa\u5206\u652f<br \/>\ngit checkout feature\/test  # \u5207\u6362\u5206\u652f<\/p>\n<p># \u65b9\u5f0f2&#xff1a;\u521b\u5efa\u5e76\u76f4\u63a5\u5207\u6362&#xff08;\u63a8\u8350&#xff09;<br \/>\ngit checkout -b feature\/test <\/p>\n<h5 id=\"EhMQf\">4.2.3 \u63a8\u9001\u672c\u5730\u5206\u652f\u5230\u8fdc\u7a0b<\/h5>\n<p># \u9996\u6b21\u63a8\u9001&#xff08;\u914d\u7f6e\u8ffd\u8e2a&#xff09;<br \/>\ngit push -u origin feature\/test<\/p>\n<p># \u540e\u7eed\u63a8\u9001&#xff08;\u5df2\u914d\u7f6e\u8ffd\u8e2a&#xff09;<br \/>\ngit push <\/p>\n<h5 id=\"IROon\">4.2.4 \u5207\u6362\u56de\u4e3b\u5206\u652f<\/h5>\n<p>git checkout main <\/p>\n<h4 id=\"bQtxx\">4.3 \u5206\u652f\u5408\u5e76<\/h4>\n<h5 id=\"tVcSO\">4.3.1 \u5408\u5e76\u5230\u4e3b\u5206\u652f&#xff08;\u786e\u8ba4\u5206\u652f\u4ee3\u7801\u65e0\u8bef\u540e\u64cd\u4f5c&#xff09;<\/h5>\n<p># 1. \u5207\u6362\u5230\u4e3b\u5206\u652f<br \/>\ngit checkout main<\/p>\n<p># 2. \u62c9\u53d6\u4e3b\u5206\u652f\u6700\u65b0\u4ee3\u7801&#xff08;\u907f\u514d\u51b2\u7a81&#xff09;<br \/>\ngit pull origin main<\/p>\n<p># 3. \u5408\u5e76\u76ee\u6807\u5206\u652f\u5230\u4e3b\u5206\u652f<br \/>\ngit merge feature\/test<\/p>\n<p># 4. \u63a8\u9001\u5408\u5e76\u540e\u7684\u4e3b\u5206\u652f\u5230\u8fdc\u7a0b<br \/>\ngit push origin main <\/p>\n<h5 id=\"MlHT5\">4.3.2 \u89e3\u51b3\u5408\u5e76\u51b2\u7a81<\/h5>\n<p id=\"ufede891e\">\u82e5\u5408\u5e76\u65f6\u63d0\u793a\u51b2\u7a81&#xff08;\u5982\u540c\u4e00\u6587\u4ef6\u540c\u4e00\u884c\u88ab\u4fee\u6539&#xff09;&#xff0c;\u6309\u4ee5\u4e0b\u6b65\u9aa4\u5904\u7406&#xff1a;<\/p>\n<li id=\"ua88778f6\">\u51b2\u7a81\u63d0\u793a\u793a\u4f8b&#xff1a;Automatic merge failed; fix conflicts and then commit the result.&#xff1b;<\/li>\n<li id=\"uff0c1665\">\u6253\u5f00\u51b2\u7a81\u6587\u4ef6&#xff0c;\u627e\u5230\u6807\u8bb0&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD&#xff08;\u4e3b\u5206\u652f\u5185\u5bb9&#xff09;\u3001&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#xff08;\u5206\u652f\u5185\u5bb9&#xff09;\u3001&gt;&gt;&gt;&gt;&gt;&gt;&gt; feature\/test&#xff1b;<\/li>\n<li id=\"u7dbf70c4\">\u624b\u52a8\u4fee\u6539\u51b2\u7a81\u5185\u5bb9&#xff0c;\u5220\u9664\u51b2\u7a81\u6807\u8bb0&#xff1b;<\/li>\n<li id=\"u2736cb8d\">\u63d0\u4ea4\u89e3\u51b3\u540e\u7684\u4ee3\u7801&#xff1a;<\/li>\n<p>git add .  # \u6dfb\u52a0\u4fee\u6539\u540e\u7684\u6587\u4ef6<br \/>\ngit commit -m &#034;fix: \u89e3\u51b3feature\/test\u5408\u5e76\u51b2\u7a81&#034;<br \/>\ngit push origin main <\/p>\n<h4 id=\"ClAkT\">4.4 \u5220\u9664\u5206\u652f<\/h4>\n<p># \u5220\u9664\u672c\u5730\u5206\u652f&#xff08;\u9700\u5148\u5207\u6362\u5230\u5176\u4ed6\u5206\u652f&#xff09;<br \/>\ngit branch -d feature\/test  # \u5e38\u89c4\u5220\u9664&#xff08;\u9700\u5206\u652f\u5df2\u5408\u5e76&#xff09;<br \/>\ngit branch -D feature\/test  # \u5f3a\u5236\u5220\u9664&#xff08;\u672a\u5408\u5e76\u4e5f\u53ef\u5220\u9664&#xff09;<\/p>\n<p># \u5220\u9664\u8fdc\u7a0b\u5206\u652f<br \/>\ngit push origin &#8211;delete feature\/test <\/p>\n<hr id=\"ZeYMo\" \/>\n<h3 id=\"TeCW2\">5. Git \u8fdb\u9636\u64cd\u4f5c<\/h3>\n<h4 id=\"G23qT\">5.1 \u6682\u5b58\u5de5\u4f5c\u533a\u4fee\u6539&#xff08;Stash&#xff09;<\/h4>\n<p id=\"uee68199a\">\u9002\u7528\u4e8e\u4e34\u65f6\u5207\u6362\u5206\u652f&#xff0c;\u4e0d\u60f3\u63d0\u4ea4\u5f53\u524d\u672a\u5b8c\u6210\u7684\u4fee\u6539&#xff1a;<\/p>\n<p># \u6682\u5b58\u5f53\u524d\u4fee\u6539<br \/>\ngit stash save &#034;\u6682\u5b58\u8bf4\u660e&#xff1a;\u672a\u5b8c\u6210\u7684\u767b\u5f55\u529f\u80fd\u5f00\u53d1&#034;<\/p>\n<p># \u67e5\u770b\u6682\u5b58\u5217\u8868<br \/>\ngit stash list<\/p>\n<p># \u6062\u590d\u6700\u8fd1\u4e00\u6b21\u6682\u5b58<br \/>\ngit stash pop<\/p>\n<p># \u6062\u590d\u6307\u5b9a\u6682\u5b58&#xff08;\u5982stash&#064;{0}&#xff09;<br \/>\ngit stash apply stash&#064;{0}<\/p>\n<p># \u5220\u9664\u6682\u5b58<br \/>\ngit stash drop stash&#064;{0}<\/p>\n<p># \u6e05\u7a7a\u6240\u6709\u6682\u5b58<br \/>\ngit stash clear <\/p>\n<h4 id=\"HBAbC\">5.2 \u56de\u6eda\u4ee3\u7801<\/h4>\n<h5 id=\"Qs9pW\">5.2.1 \u64a4\u9500\u5de5\u4f5c\u533a\u672a\u6682\u5b58\u7684\u4fee\u6539<\/h5>\n<p># \u64a4\u9500\u5355\u4e2a\u6587\u4ef6<br \/>\ngit restore src\/index.ts<\/p>\n<p># \u64a4\u9500\u6240\u6709\u6587\u4ef6<br \/>\ngit restore . <\/p>\n<h5 id=\"YWrPz\">5.2.2 \u64a4\u9500\u6682\u5b58\u533a\u7684\u4fee\u6539&#xff08;\u5df2add\u672acommit&#xff09;<\/h5>\n<p>git reset HEAD src\/index.ts  # \u5355\u4e2a\u6587\u4ef6<br \/>\ngit reset HEAD .  # \u6240\u6709\u6587\u4ef6 <\/p>\n<h5 id=\"NzU1O\">5.2.3 \u56de\u6eda\u5df2\u63d0\u4ea4\u7684\u7248\u672c<\/h5>\n<p># \u67e5\u770b\u63d0\u4ea4\u65e5\u5fd7&#xff08;\u83b7\u53d6\u8981\u56de\u6eda\u7684commit ID&#xff09;<br \/>\ngit log &#8211;oneline  # \u7b80\u6d01\u65e5\u5fd7&#xff0c;\u8f93\u51fa\u5982&#xff1a;1234567 feat: \u6dfb\u52a0\u767b\u5f55\u529f\u80fd<\/p>\n<p># \u56de\u6eda\u5230\u6307\u5b9a\u7248\u672c&#xff08;\u4fdd\u7559\u4fee\u6539&#xff0c;\u53ef\u91cd\u65b0\u63d0\u4ea4&#xff09;<br \/>\ngit reset &#8211;soft 1234567<\/p>\n<p># \u56de\u6eda\u5230\u6307\u5b9a\u7248\u672c&#xff08;\u5220\u9664\u6240\u6709\u4fee\u6539&#xff0c;\u8c28\u614e\u4f7f\u7528&#xff09;<br \/>\ngit reset &#8211;hard 1234567<\/p>\n<p># \u63a8\u9001\u56de\u6eda\u540e\u7684\u7248\u672c\u5230\u8fdc\u7a0b&#xff08;\u9700\u5f3a\u5236\u63a8\u9001&#xff09;<br \/>\ngit push -f origin main <\/p>\n<h4 id=\"TlLn7\">5.3 \u67e5\u770b\u63d0\u4ea4\u65e5\u5fd7<\/h4>\n<p># \u7b80\u6d01\u65e5\u5fd7&#xff08;\u63a8\u8350&#xff09;<br \/>\ngit log &#8211;oneline<\/p>\n<p># \u8be6\u7ec6\u65e5\u5fd7&#xff08;\u542b\u4f5c\u8005\u3001\u65f6\u95f4\u3001\u4fee\u6539\u5185\u5bb9&#xff09;<br \/>\ngit log<\/p>\n<p># \u67e5\u770b\u6307\u5b9a\u6587\u4ef6\u7684\u63d0\u4ea4\u8bb0\u5f55<br \/>\ngit log src\/index.ts <\/p>\n<hr id=\"nV9YC\" \/>\n<h3 id=\"whsrP\">6. FAQ<\/h3>\n<h4 id=\"CjpRR\">6.1 SSH\u8fde\u63a5\u5931\u8d25<\/h4>\n<ul>\n<li id=\"u99707f5e\">\u73b0\u8c61&#xff1a;ssh: connect to host gitlab.com port 22: Connection refused&#xff1b;<\/li>\n<li id=\"u398c247a\">\u539f\u56e0&#xff1a;\u7aef\u53e322\u88ab\u5c4f\u853d&#xff0c;\u6216\u516c\u94a5\u914d\u7f6e\u9519\u8bef&#xff1b;<\/li>\n<li id=\"ua9a00222\">\u89e3\u51b3\u65b9\u6848&#xff1a;<\/li>\n<\/ul>\n<li>\n<li id=\"u13ad2f1c\">\u68c0\u67e5\u516c\u94a5\u662f\u5426\u5b8c\u6574\u7c98\u8d34\u5230\u5e73\u53f0&#xff08;\u65e0\u6362\u884c\/\u7a7a\u683c&#xff09;&#xff1b;<\/li>\n<li id=\"u103a2846\">\u5c1d\u8bd5\u6539\u7528443\u7aef\u53e3&#xff08;\u4fee\u6539config\u6587\u4ef6&#xff09;&#xff1a;<\/li>\n<\/li>\n<p>Host gitlab.com<br \/>\n  HostName gitlab.com<br \/>\n  User git<br \/>\n  IdentityFile ~\/.ssh\/id_rsa_gitlab<br \/>\n  Port 443 <\/p>\n<h4 id=\"g0YKn\">6.2 Push\u63d0\u793a\u300c\u6743\u9650\u4e0d\u8db3\u300d<\/h4>\n<ul>\n<li id=\"uc0aad06c\">\u73b0\u8c61&#xff1a;remote: You are not allowed to push code to this project.&#xff1b;<\/li>\n<li id=\"u1ff3a4a8\">\u539f\u56e0&#xff1a;GitLab\/GitHub\u8d26\u53f7\u65e0\u8be5\u9879\u76ee\u63a8\u9001\u6743\u9650&#xff1b;<\/li>\n<li id=\"u6e0fb54c\">\u89e3\u51b3\u65b9\u6848&#xff1a;\u8054\u7cfb\u9879\u76ee\u7ba1\u7406\u5458\u6dfb\u52a0\u6743\u9650&#xff0c;\u6216\u786e\u8ba4\u4f7f\u7528\u6b63\u786e\u7684\u8d26\u53f7\u3002<\/li>\n<\/ul>\n<h4 id=\"uoDbs\">6.3 \u5206\u652f\u8ffd\u8e2a\u5173\u7cfb\u4e22\u5931<\/h4>\n<ul>\n<li id=\"u7690cb76\">\u73b0\u8c61&#xff1a;fatal: The current branch has no upstream branch.&#xff1b;<\/li>\n<li id=\"u1f5fe343\">\u89e3\u51b3\u65b9\u6848&#xff1a;\u91cd\u65b0\u914d\u7f6e\u8ffd\u8e2a&#xff1a;git push -u origin \u5206\u652f\u540d\u3002<\/li>\n<\/ul>\n<hr id=\"Ld29d\" \/>\n<p id=\"udc61e501\">\u6b63\u5e38\u60c5\u51b5\u4e0b&#xff0c;\u4e0a\u9762\u8fd9\u4e9b\u547d\u4ee4\u548c\u64cd\u4f5c\u8db3\u4ee5\u5e94\u5bf9\u5927\u5b66\u751f\u672c\u79d1\u9636\u6bb5\u7684\u9879\u76ee\u5f00\u53d1\u4e1a\u52a1\u4e86&#xff0c;\u5982\u679c\u6709\u4e0d\u8db3\u9057\u6f0f\u4e4b\u5904&#xff0c;\u6b22\u8fce\u8054\u7cfb\u6211\u4fee\u6539\u8865\u5145~<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55<br \/>\nSSH Key \u914d\u7f6e&#xff08;GitHub\/GitLab \u53cc\u5e73\u53f0&#xff09;Git \u57fa\u7840\u5168\u5c40\u914d\u7f6eGit \u6838\u5fc3\u57fa\u7840\u64cd\u4f5cGit \u5206\u652f\u7ba1\u7406Git \u8fdb\u9636\u64cd\u4f5c\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848 1. SSH Key \u914d\u7f6e&#xff08;GitHub\/GitLab \u53cc\u5e73\u53f0&#xff09;<br \/>\n1.1 \u6838\u5fc3\u8bf4\u660e<br \/>\nSSH Key \u7528\u4e8e\u672c\u5730\u4e0eGit\u670d\u52a1\u5668&#xff08;GitHub\/GitLab&#xff09;\u7684\u514d\u5bc6\u8ba4\u8bc1&#xff0c;\u63a8\u8350\u4e3a\u4e0d\u540c\u5e73\u53f0\u914d\u7f6e\u72ec\u7acbKey\u4ee5\u907f\u514d\u51b2\u7a81&#xff08;\u672c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,174,1299,89,81,323,190],"topic":[],"class_list":{"0":"post-60653","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-server","7":"tag-c","9":"tag-elasticsearch","10":"tag-git","11":"tag-python","12":"tag-323","13":"tag-190"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Git\u64cd\u4f5c\u624b\u518c\uff08\u5176\u5b9e\u4e00\u70b9\u90fd\u4e0d\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/60653.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git\u64cd\u4f5c\u624b\u518c\uff08\u5176\u5b9e\u4e00\u70b9\u90fd\u4e0d\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u76ee\u5f55 SSH Key \u914d\u7f6e&#xff08;GitHub\/GitLab \u53cc\u5e73\u53f0&#xff09;Git \u57fa\u7840\u5168\u5c40\u914d\u7f6eGit \u6838\u5fc3\u57fa\u7840\u64cd\u4f5cGit \u5206\u652f\u7ba1\u7406Git \u8fdb\u9636\u64cd\u4f5c\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848 1. SSH Key \u914d\u7f6e&#xff08;GitHub\/GitLab \u53cc\u5e73\u53f0&#xff09; 1.1 \u6838\u5fc3\u8bf4\u660e SSH Key \u7528\u4e8e\u672c\u5730\u4e0eGit\u670d\u52a1\u5668&#xff08;GitHub\/GitLab&#xff09;\u7684\u514d\u5bc6\u8ba4\u8bc1&#xff0c;\u63a8\u8350\u4e3a\u4e0d\u540c\u5e73\u53f0\u914d\u7f6e\u72ec\u7acbKey\u4ee5\u907f\u514d\u51b2\u7a81&#xff08;\u672c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/60653.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-15T17:05:20+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60653.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/60653.html\",\"name\":\"Git\u64cd\u4f5c\u624b\u518c\uff08\u5176\u5b9e\u4e00\u70b9\u90fd\u4e0d\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-15T17:05:20+00:00\",\"dateModified\":\"2026-01-15T17:05:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/60653.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/60653.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60653.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git\u64cd\u4f5c\u624b\u518c\uff08\u5176\u5b9e\u4e00\u70b9\u90fd\u4e0d\u96be\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Git\u64cd\u4f5c\u624b\u518c\uff08\u5176\u5b9e\u4e00\u70b9\u90fd\u4e0d\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/60653.html","og_locale":"zh_CN","og_type":"article","og_title":"Git\u64cd\u4f5c\u624b\u518c\uff08\u5176\u5b9e\u4e00\u70b9\u90fd\u4e0d\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u76ee\u5f55 SSH Key \u914d\u7f6e&#xff08;GitHub\/GitLab \u53cc\u5e73\u53f0&#xff09;Git \u57fa\u7840\u5168\u5c40\u914d\u7f6eGit \u6838\u5fc3\u57fa\u7840\u64cd\u4f5cGit \u5206\u652f\u7ba1\u7406Git \u8fdb\u9636\u64cd\u4f5c\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848 1. SSH Key \u914d\u7f6e&#xff08;GitHub\/GitLab \u53cc\u5e73\u53f0&#xff09; 1.1 \u6838\u5fc3\u8bf4\u660e SSH Key \u7528\u4e8e\u672c\u5730\u4e0eGit\u670d\u52a1\u5668&#xff08;GitHub\/GitLab&#xff09;\u7684\u514d\u5bc6\u8ba4\u8bc1&#xff0c;\u63a8\u8350\u4e3a\u4e0d\u540c\u5e73\u53f0\u914d\u7f6e\u72ec\u7acbKey\u4ee5\u907f\u514d\u51b2\u7a81&#xff08;\u672c","og_url":"https:\/\/www.wsisp.com\/helps\/60653.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-15T17:05:20+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/60653.html","url":"https:\/\/www.wsisp.com\/helps\/60653.html","name":"Git\u64cd\u4f5c\u624b\u518c\uff08\u5176\u5b9e\u4e00\u70b9\u90fd\u4e0d\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-15T17:05:20+00:00","dateModified":"2026-01-15T17:05:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/60653.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/60653.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/60653.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Git\u64cd\u4f5c\u624b\u518c\uff08\u5176\u5b9e\u4e00\u70b9\u90fd\u4e0d\u96be\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/60653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=60653"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/60653\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=60653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=60653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=60653"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=60653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}