1
0
mirror of https://github.com/ZSCNetSupportDept/website.git synced 2025-10-29 01:15:04 +08:00
Files
website/assets/js/bed02de3.83187c13.js

1 line
18 KiB
JavaScript

"use strict";(self.webpackChunkdeveloper_zsc=self.webpackChunkdeveloper_zsc||[]).push([[9718],{7594:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>d,default:()=>p,frontMatter:()=>c,metadata:()=>r,toc:()=>h});var s=i(4848),t=i(8453);const c={},d="\u5feb\u901f\u4e0a\u624b",r={id:"devdocs/\u7f51\u7ad9/\u5f00\u53d1\u7ec4\u7f51\u7ad9/\u5feb\u901f\u4e0a\u624b",title:"\u5feb\u901f\u4e0a\u624b",description:"\u672c\u6307\u5357\u5199\u7ed9\u6280\u672f\u80cc\u666f\u8f83\u6d45\uff0c\u4f46\u662f\u53c8\u613f\u610f\u53c2\u4e0e\u7f51\u7ad9\u5185\u5bb9\u5f00\u53d1\u7684\u4eba",source:"@site/docs/devdocs/02-\u7f51\u7ad9/02-\u5f00\u53d1\u7ec4\u7f51\u7ad9/\u5feb\u901f\u4e0a\u624b.md",sourceDirName:"devdocs/02-\u7f51\u7ad9/02-\u5f00\u53d1\u7ec4\u7f51\u7ad9",slug:"/devdocs/\u7f51\u7ad9/\u5f00\u53d1\u7ec4\u7f51\u7ad9/\u5feb\u901f\u4e0a\u624b",permalink:"/docs/devdocs/\u7f51\u7ad9/\u5f00\u53d1\u7ec4\u7f51\u7ad9/\u5feb\u901f\u4e0a\u624b",draft:!1,unlisted:!1,editUrl:"https://github.com/ZSCNetSupportDept/website/tree/master/docs/devdocs/02-\u7f51\u7ad9/02-\u5f00\u53d1\u7ec4\u7f51\u7ad9/\u5feb\u901f\u4e0a\u624b.md",tags:[],version:"current",frontMatter:{},sidebar:"devdocs",previous:{title:"\u5f00\u53d1\u7ec4\u7f51\u7ad9-\u5916\u89c2",permalink:"/docs/devdocs/\u7f51\u7ad9/\u5f00\u53d1\u7ec4\u7f51\u7ad9/\u5f00\u53d1\u7ec4\u7f51\u7ad9-\u5916\u89c2"},next:{title:"\u65e7\u7248wiki",permalink:"/docs/devdocs/\u7f51\u7ad9/\u65e7\u7248wiki/\u65e7\u7248wiki-\u6982\u89c8"}},l={},h=[{value:"\u51c6\u5907",id:"\u51c6\u5907",level:2},{value:"\u7f16\u8f91",id:"\u7f16\u8f91",level:2},{value:"\u6587\u4ef6\u540d",id:"\u6587\u4ef6\u540d",level:3},{value:"\u63a8\u9001\u5230\u4ed3\u5e93",id:"\u63a8\u9001\u5230\u4ed3\u5e93",level:2},{value:"\u9009\u98791:\u4f7f\u7528SSH",id:"\u9009\u98791\u4f7f\u7528ssh",level:3},{value:"\u9009\u98792\uff1a\u4f7f\u7528github-cli",id:"\u9009\u98792\u4f7f\u7528github-cli",level:3},{value:"\u63d0\u4ea4pull request",id:"\u63d0\u4ea4pull-request",level:3}];function o(e){const n={a:"a",admonition:"admonition",br:"br",code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h1,{id:"\u5feb\u901f\u4e0a\u624b",children:"\u5feb\u901f\u4e0a\u624b"}),"\n",(0,s.jsx)(n.p,{children:"\u672c\u6307\u5357\u5199\u7ed9\u6280\u672f\u80cc\u666f\u8f83\u6d45\uff0c\u4f46\u662f\u53c8\u613f\u610f\u53c2\u4e0e\u7f51\u7ad9\u5185\u5bb9\u5f00\u53d1\u7684\u4eba"}),"\n",(0,s.jsx)(n.admonition,{title:"\u4fe1\u606f",type:"info",children:(0,s.jsxs)(n.p,{children:["\u5728\u6b63\u5f0f\u5f00\u59cb\u7f16\u8f91\u524d\uff0c\u4f60\u53ef\u4ee5\u770b\u770b\u6211\u4eec\u7684\u6210\u54c1\u7f51\u7ad9\uff0c\u6bcf\u7bc7\u6587\u7ae0\u7684\u4e0b\u9762\u4f1a\u6709\u4e00\u4e2a",(0,s.jsx)(n.code,{children:"Edit This Page"}),"\u7684\u94fe\u63a5\uff0c\u662f\u8fd9\u7bc7\u6587\u7ae0\u7684\u6e90\u4ee3\u7801\uff0c\u8fd9\u91cc\u662f\u7f51\u7ad9\u7684\u94fe\u63a5\uff1a",(0,s.jsx)(n.a,{href:"https://zscdev-demo.pages.dev/",children:"Click Me "})]})}),"\n",(0,s.jsx)(n.h2,{id:"\u51c6\u5907",children:"\u51c6\u5907"}),"\n",(0,s.jsx)(n.p,{children:"\u6211\u4eec\u5047\u8bbe\u4f60\u6240\u4f7f\u7528\u7684\u662fwindows\u7cfb\u7edf\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5\u5fc5\u8981\u7684\u5f00\u53d1\u5de5\u5177\uff1agit \u548c nodejs\u3002"}),"\n",(0,s.jsxs)(n.p,{children:["\u8bbf\u95ee\u5982\u4e0b\u94fe\u63a5\uff1a",(0,s.jsx)(n.a,{href:"https://git-scm.com/download/win",children:"git\u4e0b\u8f7d"})," , ",(0,s.jsx)(n.a,{href:"https://nodejs.org/zh-cn/download/prebuilt-installer",children:"nodejs\u4e0b\u8f7d"}),"\u3002"]}),"\n",(0,s.jsx)(n.admonition,{title:"\u4fe1\u606f",type:"info",children:(0,s.jsxs)(n.p,{children:["\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7windows\u81ea\u5e26\u7684WinGet\u5305\u7ba1\u7406\u5668\u4e0b\u8f7d,\u8be6\u89c1\uff1a",(0,s.jsx)(n.a,{href:"https://learn.microsoft.com/zh-cn/windows/package-manager/winget/",children:"\u5fae\u8f6f\u6587\u6863"}),"\u3002"]})}),"\n",(0,s.jsx)(n.admonition,{title:"git\u662f\u4ec0\u4e48\uff1f",type:"tip",children:(0,s.jsx)(n.p,{children:"git\u662f\u4e00\u4e2a\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u4ed6\u53ef\u4ee5\u8ffd\u8e2a\u4e00\u4e2a\u9879\u76ee\u7684\u6539\u52a8\uff0c\u5e76\u4e14\u5927\u5927\u65b9\u4fbf\u4e86\u591a\u4eba\u534f\u4f5c\u7684\u7ba1\u7406\u3002"})}),"\n",(0,s.jsx)(n.admonition,{title:"\u4ec0\u4e48\u662fNode.js?",type:"tip",children:(0,s.jsx)(n.p,{children:"Node.js\u662f\u4e00\u4e2a\u5728\u540e\u7aef\u8fd0\u884cjavascript\u7684\u8fd0\u884c\u65f6\u3002"})}),"\n",(0,s.jsxs)(n.p,{children:["\u8bbf\u95eegithub,\u5982\u679c\u6ca1\u6709\u8d26\u53f7\uff0c\u5c31\u6ce8\u518c\u4e00\u4e2a\uff0c\u6253\u5f00",(0,s.jsx)(n.a,{href:"https://github.com/ZSCNetSupportDept/website%E3%80%82",children:"https://github.com/ZSCNetSupportDept/website\u3002"})]}),"\n",(0,s.jsx)(n.p,{children:"\u70b9\u51fb\u4e0a\u9762\u7684fork,\u521b\u5efa\u4ed3\u5e93\u7684\u4e00\u4e2a\u5206\u652f\uff0c\u70b9\u51fbcreate fork\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u8fdb\u5165\u4f60\u521a\u624dfork\u7684\u4ed3\u5e93\uff0c\u70b9\u51fbCode,\u9009\u62e9HTTPS,\u590d\u5236\u4e0b\u9762\u7684\u90a3\u4e00\u4e32\u5185\u5bb9\u3002"}),"\n",(0,s.jsx)(n.p,{children:'\u7136\u540e\uff0c\u8bf7\u6253\u5f00\u4f60\u7684\u7ec8\u7aef,\u4f60\u53ef\u4ee5\u5728\u201c\u5f00\u59cb\u201d\u83dc\u5355\u680f\u91cc\u641c\u7d22"PowerShell"\u6765\u6253\u5f00\u3002'}),"\n",(0,s.jsxs)(n.p,{children:["\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u6ca1\u6709\u5b89\u88c5PowerShell,\u4f60\u53ef\u4ee5\u4f7f\u7528cmd\uff0c\u6309",(0,s.jsx)(n.code,{children:"Win+R"}),",\u5728\u5f39\u51fa\u6846\u91cc\u8f93\u5165",(0,s.jsx)(n.code,{children:"cmd"}),"\u6253\u5f00\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:["\u8f93\u5165",(0,s.jsx)(n.code,{children:"git clone \u4f60\u590d\u5236\u7684\u5185\u5bb9"}),",\u8fd9\u5c06\u5728\u4f60\u7684\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a",(0,s.jsx)(n.code,{children:"website"}),"\u7684\u6587\u4ef6\u5939\uff0c\u5e76\u5c06\u5f00\u53d1\u7ec4\u7f51\u7ad9\u7684\u5168\u90e8\u5185\u5bb9\u590d\u5236\u5230\u8fd9\u4e2a\u6587\u4ef6\u5939\u91cc\u9762\u3002"]}),"\n",(0,s.jsx)(n.admonition,{title:"\u63d0\u793a",type:"tip",children:(0,s.jsx)(n.p,{children:"\u4f60\u53ef\u80fd\u4f1a\u9700\u8981\u79d1\u5b66\u4e0a\u7f51\u7684\u624b\u6bb5\u6765\u8bbf\u95eegithub\u3002"})}),"\n",(0,s.jsxs)(n.p,{children:["\u7136\u540e\uff0c\u8f93\u5165",(0,s.jsx)(n.code,{children:"cd website"})]}),"\n",(0,s.jsxs)(n.p,{children:["\u5207\u6362\u5230\u6211\u4eec\u7684\u9879\u76ee\u76ee\u5f55\u4e0b\u540e\uff0c\u8fd0\u884c",(0,s.jsx)(n.code,{children:"npm install"}),"\u6765\u5b89\u88c5\u9879\u76ee\u7684\u6240\u6709\u4f9d\u8d56\u3002"]}),"\n",(0,s.jsx)(n.admonition,{title:"\u63d0\u793a",type:"tip",children:(0,s.jsxs)(n.p,{children:["\u4e3a\u4e86\u52a0\u901f\u4e0b\u8f7d\uff0c\u4f60\u53ef\u80fd\u4f1a\u9700\u8981\u914d\u7f6enpm\u955c\u50cf\uff0c\u53ef\u4ee5\u8f93\u5165",(0,s.jsx)(n.code,{children:"npm config set registry https://registry.npmmirror.com"}),"\u3002"]})}),"\n",(0,s.jsxs)(n.p,{children:["\u73b0\u5728\uff0c\u8f93\u5165",(0,s.jsx)(n.code,{children:"npm start"}),"\uff0c\u7a0b\u5e8f\u5c31\u4f1a\u5728\u4f60\u7684\u7535\u8111\u4e0a\u6784\u5efa\u5e76\u90e8\u7f72\u7f51\u7ad9\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:["\u7136\u540e\u5728\u4f60\u7684\u6d4f\u89c8\u5668\u4e0a\u8f93\u5165",(0,s.jsx)(n.code,{children:"https://localhost:3000"})]}),"\n",(0,s.jsx)(n.p,{children:"\u5982\u679c\u6ca1\u6709\u51fa\u9519\u7684\u8bdd\uff0c\u4f60\u4f1a\u770b\u5230\u6211\u4eec\u5f00\u53d1\u7ec4\u7f51\u7ad9\u7684\u4e3b\u9875\u3002"}),"\n",(0,s.jsx)(n.h2,{id:"\u7f16\u8f91",children:"\u7f16\u8f91"}),"\n",(0,s.jsxs)(n.p,{children:["\u6253\u5f00",(0,s.jsx)(n.code,{children:"website"}),"\u4e0b\u7684",(0,s.jsx)(n.code,{children:"docs"}),"\u6587\u4ef6\u5939\uff0c\u518d\u6253\u5f00",(0,s.jsx)(n.code,{children:"wiki"}),"\u6587\u4ef6\u5939,\u8fd9\u91cc\u5c31\u662f\u6211\u4eec\u7684wiki\u5185\u5bb9\u4ed3\u5e93\u4e86\u3002"]}),"\n",(0,s.jsx)(n.p,{children:"\u4ed3\u5e93\u91cc\u7684\u6240\u6709\u7684\u6587\u7ae0\u90fd\u662f\u4ee5md\u7ed3\u5c3e\u7684markdown\u6587\u4ef6\uff0c\u4f60\u9700\u8981\u719f\u6089markdown\u7684\u5199\u6cd5\uff0c\u624d\u80fd\u5bf9\u6587\u7ae0\u7684\u5185\u5bb9\u4fee\u6539\u548c\u5b8c\u5584\uff0cmarkdown\u5e76\u4e0d\u662f\u7279\u522b\u590d\u6742\uff0c\u4f60\u53ef\u4ee5\u82b1\u4e00\u70b9\u65f6\u95f4\u53bb\u5b66\u4f1a\u4ed6\u3002"}),"\n",(0,s.jsx)(n.admonition,{title:"\u4fe1\u606f",type:"info",children:(0,s.jsxs)(n.p,{children:["\u8fd9\u91cc\u662f\u4e00\u4e9b\u5b66\u4e60markdown\u7684\u8d44\u6e90\uff1a",(0,s.jsx)(n.a,{href:"https://markdown.com.cn/",children:"https://markdown.com.cn/"})," ",(0,s.jsx)(n.br,{}),"\n",(0,s.jsx)(n.a,{href:"https://github.highlight.ink/mastering-markdown/intro",children:"https://github.highlight.ink/mastering-markdown/intro"})," ",(0,s.jsx)(n.br,{}),"\n",(0,s.jsx)(n.a,{href:"https://commonmark.org/",children:"https://commonmark.org/"})," (\u82f1\u6587)"]})}),"\n",(0,s.jsx)(n.p,{children:"\u5982\u679c\u60f3\u8981\u5728\u6587\u672c\u4e2d\u6dfb\u52a0\u56fe\u7247\uff0c\u89c6\u9891\uff0c\u6216\u8005\u5176\u4ed6\u8d44\u6e90\uff0c\u8bf7\u5c06\u8fd9\u4e9b\u7d20\u6750\u653e\u5165static\u4e2d\uff0c\u4ee5\u65b9\u4fbf\u7ba1\u7406\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u5bf9\u4ee3\u7801\u7684\u4fee\u6539\u5c06\u4f1a\u81ea\u52a8\u540c\u6b65\u5230\u521a\u624d\u6253\u5f00\u7684\u7f51\u9875\u91cc\uff0c\u4f60\u53ef\u4ee5\u5728\u90a3\u91cc\u786e\u8ba4\u4fee\u6539\u7684\u7ed3\u679c\u6ee1\u610f\u4e0e\u5426\uff0c\u6ce8\u610f\uff0c\u4f60\u9700\u8981\u4fdd\u5b58\u6587\u4ef6\u624d\u4f1a\u540c\u6b65\u66f4\u6539\u3002"}),"\n",(0,s.jsxs)(n.p,{children:["\u4fee\u6539\u5b8c\u6bd5\u540e\uff0c\u8f93\u5165",(0,s.jsx)(n.code,{children:"git add ."}),"\u518d\u8f93\u5165",(0,s.jsx)(n.code,{children:"git commit"}),"\uff0c\u5e76\u5bf9\u4f60\u7684\u4fee\u6539\u505a\u51fa\u4e00\u4e2a\u7b80\u77ed\u7684\u8bf4\u660e\u3002"]}),"\n",(0,s.jsx)(n.h3,{id:"\u6587\u4ef6\u540d",children:"\u6587\u4ef6\u540d"}),"\n",(0,s.jsxs)(n.p,{children:["\u4f60\u4f1a\u53d1\u73b0\uff0c\u6240\u6709\u6587\u4ef6\u7684\u540d\u5b57\u524d\u9762\u90fd\u6709\u4e00\u4e2a\u6570\u5b57\uff0c\u90a3\u5c31\u662f\u6587\u7ae0\u5728sidebar\u4e2d\u51fa\u73b0\u7684\u987a\u5e8f\uff0c\u589e\u6dfb\u6587\u4ef6\uff0c\u8bf7\u6309\u7167",(0,s.jsx)(n.code,{children:"order-filename.md"}),"\u7684\u683c\u5f0f\u4fee\u6539\u540d\u5b57\u3002"]}),"\n",(0,s.jsx)(n.p,{children:"\u5728\u6587\u4ef6\u540d\u524d\u52a0\u4e00\u4e2a\u4e0b\u5212\u7ebf\uff0c\u7cfb\u7edf\u5c31\u4e0d\u4f1a\u5c06\u6587\u7ae0\u52a0\u5165\u6210\u54c1\u7f51\u7ad9\u4e2d\u3002"}),"\n",(0,s.jsx)(n.h2,{id:"\u63a8\u9001\u5230\u4ed3\u5e93",children:"\u63a8\u9001\u5230\u4ed3\u5e93"}),"\n",(0,s.jsx)(n.admonition,{title:"\u63d0\u793a",type:"tip",children:(0,s.jsx)(n.p,{children:"\u4f60\u53ef\u4ee5\u4f7f\u7528github desktop\u6216github cli\u6765\u7b80\u5316\u8fd9\u4e2a\u6d41\u7a0b\uff0c\u4e0d\u8fc7\u6211\u4eec\u60f3\u8ba9\u4f60\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u5b66\u4e60SSH\u7684\u7528\u6cd5\uff0c\u5982\u679c\u4f60\u60f3\u65b9\u4fbf\u4e00\u70b9\uff0c\u76f4\u63a5\u8df3\u5230\u201c\u4f7f\u7528github-cli\u201d\u3002"})}),"\n",(0,s.jsx)(n.h3,{id:"\u9009\u98791\u4f7f\u7528ssh",children:"\u9009\u98791:\u4f7f\u7528SSH"}),"\n",(0,s.jsxs)(n.p,{children:["\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u5b89\u88c5\u4e86SSH,\u4f60\u53ef\u4ee5\u770b\u5fae\u8f6f\u7684\u8fd9\u7247\u6587\u6863\uff1a",(0,s.jsx)(n.a,{href:"https://learn.microsoft.com/zh-cn/windows-server/administration/openssh/openssh_install_firstuse?tabs=gui",children:"\u94fe\u63a5"}),"\u3002"]}),"\n",(0,s.jsx)(n.p,{children:"\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-PowerShell",children:"\nssh-keygen -t ed25519\n\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u7136\u540e\u5728\u63a5\u4e0b\u6765\u7684\u9009\u9879\u4e2d\u68c0\u67e5\u5bc6\u94a5\u7684\u5b58\u653e\u8def\u5f84\uff0c\u4ee5\u53ca\u4f7f\u7528\u4e00\u4e2a\u5bc6\u7801\u6765\u52a0\u5bc6\u8fd9\u4e2a\u5bc6\u94a5\uff0c\u6211\u4eec\u5efa\u8bae\u4f60\u8bbe\u7f6e\u4e00\u4e2a\u5bc6\u7801\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u7136\u540e\u6211\u4eec\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u542f\u52a8ssh-agent\u670d\u52a1\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u786e\u4fdd\u4f60\u4f7f\u7528\u4e86\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c\u4e86\u4e0b\u9762\u7684PowerShell\u4ee3\u7801\uff1a"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-PowerShell",children:"\nGet-Service ssh-agent | Set-Service -StartupType Automatic\n\nStart-Service ssh-agent\n\nGet-Service ssh-agent\n\n"})}),"\n",(0,s.jsxs)(n.p,{children:["\u6700\u540e\u4e00\u4e2a\u547d\u4ee4\u5e94\u8be5\u4f1a\u8fd4\u56de",(0,s.jsx)(n.code,{children:"Running"}),"\u72b6\u6001\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:["\u7136\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u8f93\u5165",(0,s.jsx)(n.code,{children:"ssh-add"}),"\u6765\u52a0\u8f7d\u4f60\u7684\u5bc6\u94a5\u3002"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-PowerShell",children:"\nssh-add \u4f60\u7684\u79c1\u94a5\u4f4d\u7f6e\n\n"})}),"\n",(0,s.jsx)(n.admonition,{title:"\u63d0\u793a",type:"tip",children:(0,s.jsxs)(n.p,{children:["\u6bcf\u6b21\u91cd\u542f\u7535\u8111\uff0c\u4f60\u90fd\u8981\u91cd\u65b0\u8f93\u5165\u4e00\u904d",(0,s.jsx)(n.code,{children:"ssh-add"}),"\u3002"]})}),"\n",(0,s.jsx)(n.admonition,{title:"\u4fe1\u606f",type:"info",children:(0,s.jsxs)(n.p,{children:["\u5173\u4e8eSSH\u7684\u914d\u7f6e\uff0c\u53c2\u8003\u4e86\u8fd9\u7247",(0,s.jsx)(n.a,{href:"https://learn.microsoft.com/zh-cn/windows-server/administration/openssh/openssh_keymanagement",children:"\u5fae\u8f6f\u6587\u6863"}),"\u3002"]})}),"\n",(0,s.jsx)(n.p,{children:"\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u914d\u7f6egithub\u7684SSH\u8bbf\u95ee\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u6253\u5f00\u4e0e\u79c1\u94a5\u540c\u76ee\u5f55\u4e0b\u7684\u516c\u94a5\u6587\u4ef6(\u4ee5pub\u7ed3\u5c3e)\uff0c\u7136\u540e\u590d\u5236\u4ed6\uff0c\u6ce8\u610f\u8981\u5168\u90e8\u590d\u5236\uff0c\u4e0d\u8981\u591a\u51fa\u6216\u51cf\u5c11\u4efb\u4f55\u5185\u5bb9\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u70b9\u4e00\u4e0b\u4f60\u7684github\u5934\u50cf\uff0c\u9009\u62e9Settings,\u7136\u540e\u5728\u4fa7\u8fb9\u680f\u7684Access\u677f\u5757\u627e\u5230SSH and GPG keys\u3002"}),"\n",(0,s.jsxs)(n.p,{children:["\u70b9\u51fb ",(0,s.jsx)(n.code,{children:"New SSH key"}),"\u3002"]}),"\n",(0,s.jsx)(n.p,{children:"\u628a\u5bc6\u94a5\u7c98\u8d34\u5230\u4e0b\u9762\uff0c\u7136\u540e\u4fdd\u5b58\u5c31\u884c\u4e86\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u5728\u7ec8\u7aef\u91cc\u8f93\u5165"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-PowerShell",children:"\nssh git@github.com\n\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u5982\u679c\u8fd4\u56de\u7684\u6587\u672c\u91cc\u51fa\u73b0\u4e86\u4f60\u7684\u7528\u6237\u540d\uff0c\u914d\u7f6e\u5c31\u5927\u6982\u6210\u529f\u4e86\u3002"}),"\n",(0,s.jsxs)(n.p,{children:["\u73b0\u5728\u5c31\u53ef\u4ee5\u8f93\u5165",(0,s.jsx)(n.code,{children:"git push"}),"\u4e86"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-PowerShell",children:"\ngit push\n\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u5411\u8fdc\u7aef\u7684\u4ed3\u5e93\u63d0\u4ea4\u4f60\u5728\u672c\u5730\u63d0\u4ea4\u7684commit,\u68c0\u67e5\u4f60\u7684fork\u4ed3\u5e93\uff0c\u6709\u6ca1\u6709\u66f4\u65b0\u5230\u4f60\u672c\u5730\u7684\u4fee\u6539\uff1f"}),"\n",(0,s.jsx)(n.admonition,{title:"\u4fe1\u606f",type:"info",children:(0,s.jsxs)(n.p,{children:["\u53c2\u8003\u4e86github\u7684\u6587\u6863:",(0,s.jsx)(n.a,{href:"https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/about-ssh",children:"Click Me "})]})}),"\n",(0,s.jsx)(n.h3,{id:"\u9009\u98792\u4f7f\u7528github-cli",children:"\u9009\u98792\uff1a\u4f7f\u7528github-cli"}),"\n",(0,s.jsxs)(n.p,{children:["\u8bbf\u95ee",(0,s.jsx)(n.a,{href:"https://github.com/cli/cli/releases",children:"https://github.com/cli/cli/releases"})," \uff0c \u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:["\u8f93\u5165",(0,s.jsx)(n.code,{children:"gh"}),"\u4ee5\u68c0\u67e5\u5b89\u88c5\u7684\u6210\u529f\u72b6\u51b5\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:["\u6ca1\u95ee\u9898\u7684\u8bdd\uff0c\u8f93\u5165",(0,s.jsx)(n.code,{children:"gh auth login"}),",\u4f1a\u5f39\u51fa\u4e00\u4e2a\u6d4f\u89c8\u5668\u7a97\u53e3\uff0c\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u5b8c\u6210\u767b\u5f55\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:["\u7136\u540e\uff0c\u4f60\u5e94\u8be5\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528",(0,s.jsx)(n.code,{children:"git push"}),"\u4e86\uff0c\u8f93\u5165",(0,s.jsx)(n.code,{children:"git push"}),",\u7136\u540e\u67e5\u770b\u4f60\u5728github\u4e2d\u7684fork\u4ed3\u5e93\uff0c\u6709\u6ca1\u6709\u66f4\u65b0\u5230\u4f60\u672c\u5730\u7684\u4fee\u6539\u3002"]}),"\n",(0,s.jsx)(n.admonition,{title:"\u4fe1\u606f",type:"info",children:(0,s.jsxs)(n.p,{children:["\u8fd9\u91cc\u6709\u66f4\u591a\u5173\u4e8egithub cli \u7684\u4fe1\u606f:",(0,s.jsx)(n.a,{href:"https://docs.github.com/zh/github-cli/github-cli/about-github-cli",children:"Click Me "})]})}),"\n",(0,s.jsx)(n.h3,{id:"\u63d0\u4ea4pull-request",children:"\u63d0\u4ea4pull request"}),"\n",(0,s.jsx)(n.p,{children:"\u4e00\u4e2apull request \u662f\u4e00\u4e2a\u8bf7\u6c42\uff0c\u5c06\u4fee\u6539\u5efa\u8bae\u53d1\u9001\u7ed9\u4e3b\u4ed3\u5e93\uff0c\u5e76\u8ba9\u4e3b\u4ed3\u5e93\u5408\u5e76\u8fd9\u4e9b\u4fee\u6539\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u6253\u5f00\u4e3b\u4ed3\u5e93\uff0c\u9009\u62e9\u4e0a\u9762\u7684Pull Requests,\u7136\u540e\u9009\u62e9New Pull Request,\u5982\u679c\u6ca1\u6709\u51fa\u73b0\u4f60\u7684fork\u4ed3\u5e93\uff0c\u70b9\u51fbcompare accross forks\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u7136\u540e\u5c31\u53ef\u4ee5Create Pull Request\u4e86\u3002"}),"\n",(0,s.jsx)(n.p,{children:"\u6211\u4eec\u4f1a\u68c0\u67e5\u4f60\u7684\u63d0\u4ea4\u662f\u5426\u5408\u9002\uff0c\u7136\u540e\u5728\u4e3b\u4ed3\u5e93\u5408\u5e76\u4f60\u7684\u4fee\u6539\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u7684\u5f00\u53d1\u6d41\u7a0b\u4e86\u3002"})]})}function p(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>d,x:()=>r});var s=i(6540);const t={},c=s.createContext(t);function d(e){const n=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),s.createElement(c.Provider,{value:n},e.children)}}}]);