mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-27 17:45:53 -05:00
1 line
No EOL
16 KiB
JavaScript
1 line
No EOL
16 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[712],{5967:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>o,contentTitle:()=>t,default:()=>p,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var c=n(678),i=n(4738);const r={title:"\u5b89\u5168\u6027"},t=void 0,l={id:"pages/reference/security",title:"\u5b89\u5168\u6027",description:"\u7531\u4e8e Sparo \u5de5\u5177\u4f5c\u4e3a Git \u7684\u5305\u88c5\u5668\uff0c\u6211\u4eec\u7684\u76ee\u6807\u662f\u63d0\u4f9b\u4e0e git \u547d\u4ee4\u76f8\u5f53\u7684\u5b89\u5168\u6027\u9884\u671f\u3002",source:"@site/i18n/zh-cn/docusaurus-plugin-content-docs/current/pages/reference/security.md",sourceDirName:"pages/reference",slug:"/pages/reference/security",permalink:"/sparo/zh-cn/pages/reference/security",draft:!1,unlisted:!1,editUrl:"https://github.com/tiktok/sparo/tree/main/apps/website/docs/pages/reference/security.md",tags:[],version:"current",frontMatter:{title:"\u5b89\u5168\u6027"},sidebar:"docsSidebar",previous:{title:"\u9aa8\u67b6\u6587\u4ef6\u5939",permalink:"/sparo/zh-cn/pages/reference/skeleton_folders"},next:{title:"<profile-name>.json",permalink:"/sparo/zh-cn/pages/configs/profile_json"}},o={},d=[{value:"\u5b89\u5168\u573a\u666f",id:"\u5b89\u5168\u573a\u666f",level:2},{value:"SS1: \u5b89\u5168\u5730\u514b\u9686\u4e0d\u53d7\u4fe1\u4efb\u7684\u4ed3\u5e93",id:"ss1-\u5b89\u5168\u5730\u514b\u9686\u4e0d\u53d7\u4fe1\u4efb\u7684\u4ed3\u5e93",level:3},{value:"SS2: \u5b89\u5168\u5730\u514b\u9686\u4e0d\u53d7\u4fe1\u4efb\u7684\u4ed3\u5e93\u53c2\u6570",id:"ss2-\u5b89\u5168\u5730\u514b\u9686\u4e0d\u53d7\u4fe1\u4efb\u7684\u4ed3\u5e93\u53c2\u6570",level:3},{value:"SS3: Git \u53c2\u6570\u53ef\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26",id:"ss3-git-\u53c2\u6570\u53ef\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26",level:3},{value:"\u5b89\u5168\u5047\u8bbe",id:"\u5b89\u5168\u5047\u8bbe",level:2},{value:"\u5047\u8bbe\uff1aShell \u73af\u5883\u53d8\u91cf\u662f\u53d7\u4fe1\u4efb\u7684",id:"\u5047\u8bbeshell-\u73af\u5883\u53d8\u91cf\u662f\u53d7\u4fe1\u4efb\u7684",level:2},{value:"\u5047\u8bbe\uff1a\u547d\u4ee4\u884c\u901a\u5e38\u662f\u53d7\u4fe1\u4efb\u7684",id:"\u5047\u8bbe\u547d\u4ee4\u884c\u901a\u5e38\u662f\u53d7\u4fe1\u4efb\u7684",level:2},{value:"\u5047\u8bbe\uff1a\u547d\u4ee4\u53ef\u80fd\u4f1a\u6d88\u8017\u8fc7\u591a\u8d44\u6e90",id:"\u5047\u8bbe\u547d\u4ee4\u53ef\u80fd\u4f1a\u6d88\u8017\u8fc7\u591a\u8d44\u6e90",level:2},{value:"\u5047\u8bbe\uff1aSTDOUT \u548c STDERR \u53ef\u80fd\u5305\u542b\u4efb\u610f\u5b57\u7b26",id:"\u5047\u8bbestdout-\u548c-stderr-\u53ef\u80fd\u5305\u542b\u4efb\u610f\u5b57\u7b26",level:2}];function h(e){const s={a:"a",blockquote:"blockquote",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(s.p,{children:["\u7531\u4e8e Sparo \u5de5\u5177\u4f5c\u4e3a Git \u7684\u5305\u88c5\u5668\uff0c\u6211\u4eec\u7684\u76ee\u6807\u662f\u63d0\u4f9b\u4e0e ",(0,c.jsx)(s.code,{children:"git"})," \u547d\u4ee4\u76f8\u5f53\u7684\u5b89\u5168\u6027\u9884\u671f\u3002"]}),"\n",(0,c.jsxs)(s.blockquote,{children:["\n",(0,c.jsxs)(s.p,{children:["\u26a0\ufe0f ",(0,c.jsx)(s.strong,{children:"\u8fd9\u662f\u4e00\u4e2a\u76ee\u6807\uff0c\u800c\u4e0d\u662f\u4fdd\u8bc1\u3002"})," \u26a0\ufe0f"]}),"\n",(0,c.jsx)(s.p,{children:"\u8be5\u8f6f\u4ef6\u4ecd\u5904\u4e8e\u5f00\u53d1\u7684\u65e9\u671f\u9636\u6bb5\uff0c\u5e76\u975e\u6240\u6709\u7684\u5b89\u5168\u9700\u6c42\u90fd\u5df2\u88ab\u8bc6\u522b\u6216\u5b9e\u73b0\u3002\u4efb\u4f55\u6539\u8fdb Sparo \u5b89\u5168\u6027\u7684\u52aa\u529b\u90fd\u4e0d\u5e94\u88ab\u89e3\u91ca\u4e3a\u4e0e MIT \u8bb8\u53ef\u8bc1\u7684\u6761\u6b3e\u76f8\u77db\u76fe\uff1a"}),"\n",(0,c.jsx)(s.pre,{children:(0,c.jsx)(s.code,{children:"\u8be5\u8f6f\u4ef6\u6309\u201c\u539f\u6837\u201d\u63d0\u4f9b\uff0c\u4e0d\u9644\u5e26\u4efb\u4f55\u5f62\u5f0f\u7684\u660e\u793a\u6216\u6697\u793a\u62c5\u4fdd\uff0c\n\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u9002\u9500\u6027\u3001\u7279\u5b9a\u7528\u9014\u9002\u7528\u6027\u548c\u975e\u4fb5\u6743\u7684\u62c5\u4fdd\u3002\n\u5728\u4efb\u4f55\u60c5\u51b5\u4e0b\uff0c\u4f5c\u8005\u6216\u7248\u6743\u6301\u6709\u8005\u90fd\u4e0d\u5bf9\u56e0\u8f6f\u4ef6\u6216\u8f6f\u4ef6\u7684\u4f7f\u7528\u6216\u5176\u4ed6\u4ea4\u6613\n\u5f15\u8d77\u7684\u4efb\u4f55\u7d22\u8d54\u3001\u635f\u5bb3\u6216\u5176\u4ed6\u8d23\u4efb\u8d1f\u8d23\uff0c\u65e0\u8bba\u662f\u5728\u5408\u540c\u8bc9\u8bbc\u3001\u4fb5\u6743\u884c\u4e3a\u6216\u5176\u4ed6\u60c5\u51b5\u4e0b\u3002\n"})}),"\n"]}),"\n",(0,c.jsx)(s.h2,{id:"\u5b89\u5168\u573a\u666f",children:"\u5b89\u5168\u573a\u666f"}),"\n",(0,c.jsxs)(s.p,{children:["Git \u6ca1\u6709\u63d0\u4f9b\u6b63\u5f0f\u7684\u5b89\u5168\u89c4\u8303\uff0c\u56e0\u6b64\u4e3a\u4e86\u4fbf\u4e8e\u5206\u6790 Sparo \u8d21\u732e\uff0c\u6211\u4eec\u786e\u5b9a\u4e86\u4e00\u4e9b\u6697\u793a\u5b89\u5168\u9700\u6c42\u7684\u4f7f\u7528\u573a\u666f\u3002\u6211\u4eec\u6b22\u8fce\u60a8\u7684\u53cd\u9988\u2014\u2014\u5982\u679c\u6211\u4eec\u5ffd\u7565\u4e86\u91cd\u8981\u7684\u7528\u4f8b\uff0c\u6216\u8005 Git \u7684\u884c\u4e3a\u4e0e\u63cf\u8ff0\u4e0d\u7b26\uff0c\u8bf7",(0,c.jsx)(s.a,{href:"/sparo/zh-cn/pages/support/contributing",children:"\u544a\u77e5\u6211\u4eec"}),"\u3002"]}),"\n",(0,c.jsx)(s.h3,{id:"ss1-\u5b89\u5168\u5730\u514b\u9686\u4e0d\u53d7\u4fe1\u4efb\u7684\u4ed3\u5e93",children:"SS1: \u5b89\u5168\u5730\u514b\u9686\u4e0d\u53d7\u4fe1\u4efb\u7684\u4ed3\u5e93"}),"\n",(0,c.jsxs)(s.p,{children:["\u5047\u8bbe\u4e00\u4e2a\u4e0d\u719f\u6089\u7684\u8fdc\u7a0b Git \u4ed3\u5e93\u5305\u542b\u6076\u610f\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u62ec\u6076\u610f\u914d\u7f6e\u6587\u4ef6\uff0c\u5982 ",(0,c.jsx)(s.code,{children:".gitattributes"}),"\u3001",(0,c.jsx)(s.code,{children:".gitignore"})," \u548c Git \u94a9\u5b50\u811a\u672c\u3002\u4ee5\u4e0b\u64cd\u4f5c\u5e94\u88ab\u8ba4\u4e3a\u662f\u5b89\u5168\u7684\uff1a"]}),"\n",(0,c.jsxs)(s.ul,{children:["\n",(0,c.jsxs)(s.li,{children:["\u4f7f\u7528 ",(0,c.jsx)(s.code,{children:"git clone"})," \u514b\u9686\u8fdc\u7a0b\u4ed3\u5e93\u3002"]}),"\n",(0,c.jsxs)(s.li,{children:["\u4f7f\u7528 ",(0,c.jsx)(s.code,{children:"git checkout"})," \u68c0\u51fa\u6587\u4ef6\u3002"]}),"\n",(0,c.jsxs)(s.li,{children:["\u4f7f\u7528 ",(0,c.jsx)(s.code,{children:"git commit"})," \u63d0\u4ea4\u672c\u5730\u6587\u4ef6\u7684\u4fee\u6539\u3002"]}),"\n"]}),"\n",(0,c.jsxs)(s.p,{children:["Git \u901a\u8fc7\u9ed8\u8ba4\u5ffd\u7565 Git \u94a9\u5b50\u548c ",(0,c.jsx)(s.code,{children:".gitattributes"})," \u8fc7\u6ee4\u5668\u6765\u786e\u4fdd\u5b89\u5168\u3002\u7528\u6237\u5fc5\u987b\u663e\u5f0f\u8fd0\u884c\u547d\u4ee4\u4ee5\u201c\u9009\u62e9\u52a0\u5165\u201d\uff0c\u8868\u793a\u4ed6\u4eec\u76f8\u4fe1\u8be5\u4ed3\u5e93\u6ca1\u6709\u6076\u610f\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u8c03\u7528 ",(0,c.jsx)(s.code,{children:"rush install"})," \u5c06\u6ce8\u518c\u9884\u5b9a\u4e49\u7684 Git \u94a9\u5b50\uff0c\u56e0\u4e3a NPM \u5b89\u88c5\u6d89\u53ca\u6267\u884c\u4e0d\u53d7\u4fe1\u4efb\u7684\u811a\u672c\uff0c\u56e0\u6b64\u8868\u793a\u4fe1\u4efb\u514b\u9686\u7684\u4ed3\u5e93\u3002\u53e6\u4e00\u4e2a\u4f8b\u5b50\u662f\uff0c\u5982\u679c ",(0,c.jsx)(s.code,{children:".gitattributes"})," \u5f15\u7528\u4e86 LFS \u8fc7\u6ee4\u5668\uff0c\u7528\u6237\u5fc5\u987b\u5148\u901a\u8fc7\u8fd0\u884c ",(0,c.jsx)(s.code,{children:"git lfs install"})," \u9009\u62e9\u52a0\u5165\uff0c\u8fd9\u8868\u660e\u4ed6\u4eec\u76f8\u4fe1\u8fc7\u6ee4\u5668\u7684\u4f5c\u8005\u5df2\u5b9e\u65bd\u5b89\u5168\u4fdd\u62a4\u63aa\u65bd\u4ee5\u9632\u6b62\u6076\u610f\u8f93\u5165\u3002"]}),"\n",(0,c.jsxs)(s.p,{children:["Sparo \u5f15\u5165\u4e86\u989d\u5916\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4f8b\u5982 ",(0,c.jsx)(s.a,{href:"/sparo/zh-cn/pages/configs/profile_json",children:"<profile-name>.json"}),"\u3002\u8fd9\u4e9b\u914d\u7f6e\u6587\u4ef6\u7684\u89e3\u6790\u4e5f\u5fc5\u987b\u5c06\u8f93\u5165\u89c6\u4e3a\u6f5c\u5728\u7684\u6076\u610f\uff0c\u5e76\u63d0\u4f9b\u76f8\u540c\u7684\u5b89\u5168\u4fdd\u8bc1\u3002"]}),"\n",(0,c.jsx)(s.h3,{id:"ss2-\u5b89\u5168\u5730\u514b\u9686\u4e0d\u53d7\u4fe1\u4efb\u7684\u4ed3\u5e93\u53c2\u6570",children:"SS2: \u5b89\u5168\u5730\u514b\u9686\u4e0d\u53d7\u4fe1\u4efb\u7684\u4ed3\u5e93\u53c2\u6570"}),"\n",(0,c.jsxs)(s.p,{children:["\u8bf8\u5982 ",(0,c.jsx)(s.code,{children:"git clone https://github.com/example/project.git"})," \u4e4b\u7c7b\u7684\u547d\u4ee4\u4f1a\u5199\u5165\u4e00\u4e2a\u540d\u4e3a ",(0,c.jsx)(s.code,{children:"project"})," \u7684\u5b50\u6587\u4ef6\u5939\u3002Git \u6587\u6863\u5c06\u6b64\u79f0\u4e3a URL \u7684",(0,c.jsx)(s.a,{href:"https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-ltdirectorygt",children:'"humanish"'}),"\u90e8\u5206\u3002"]}),"\n",(0,c.jsxs)(s.p,{children:["\u8003\u8651\u4e00\u4e2a\u63a5\u6536 ",(0,c.jsx)(s.code,{children:"REPOSITORY"})," \u53c2\u6570\u4f5c\u4e3a\u6587\u672c\u5b57\u7b26\u4e32\u5e76\u968f\u540e\u6b63\u786e\u8fdb\u884c shell \u8f6c\u4e49\u540e\u8c03\u7528 ",(0,c.jsx)(s.code,{children:"git clone REPOSITORY"})," \u7684\u8fdc\u7a0b\u670d\u52a1\u3002\u5728\u8ba1\u7b97 humanish \u6587\u4ef6\u5939\u540d\u79f0\u65f6\uff0cGit \u4e0d\u5e94\u5305\u542b\u8bf8\u5982 ",(0,c.jsx)(s.code,{children:".."})," \u6216 ",(0,c.jsx)(s.code,{children:"/"})," \u4e4b\u7c7b\u7684\u7279\u6b8a\u5b57\u7b26\uff0c\u8fd9\u4e9b\u5b57\u7b26\u4f1a\u5bfc\u81f4\u64cd\u4f5c\u5c06\u514b\u9686\u7684\u6587\u4ef6\u5199\u5165\u9884\u671f\u6587\u4ef6\u5939\u4e4b\u5916\u3002"]}),"\n",(0,c.jsxs)(s.p,{children:["\u5f53\u7136\uff0c\u5982\u679c\u4f7f\u7528 ",(0,c.jsx)(s.code,{children:"git clone https://github.com/example/project.git my-folder"})," \u6307\u5b9a\u4e86\u663e\u5f0f\u76ee\u6807\u6587\u4ef6\u5939\uff0c\u5219\u4e0d\u5e94\u5c06\u4efb\u4f55\u6587\u4ef6\u514b\u9686\u5230 ",(0,c.jsx)(s.code,{children:"my-folder"})," \u6587\u4ef6\u5939\u4e4b\u5916\u3002"]}),"\n",(0,c.jsx)(s.h3,{id:"ss3-git-\u53c2\u6570\u53ef\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26",children:"SS3: Git \u53c2\u6570\u53ef\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26"}),"\n",(0,c.jsxs)(s.p,{children:["Shell \u89e3\u91ca\u5668\u901a\u5e38\u4f1a\u8f6c\u6362\u6d89\u53ca\u7279\u6b8a\u5b57\u7b26\u7684\u8868\u8fbe\u5f0f\uff0c\u4f8b\u5982 ",(0,c.jsx)(s.code,{children:"$"}),"\u3001",(0,c.jsx)(s.code,{children:"%"}),"\u3001",(0,c.jsx)(s.code,{children:"("})," \u7b49\u3002\u4f8b\u5982\uff1a"]}),"\n",(0,c.jsx)(s.pre,{children:(0,c.jsx)(s.code,{className:"language-shell",children:'# \u95ee\u9898\uff1aBash \u4f1a\u5c06 "$project" \u66ff\u6362\u4e3a\n# \u540d\u4e3a "project" \u7684\u73af\u5883\u53d8\u91cf\u7684\u503c\u3002\ngit clone https://github.com/example/project.git $project\n'})}),"\n",(0,c.jsx)(s.p,{children:"\u8fd9\u9700\u8981\u8fdb\u884c\u8f6c\u4e49\uff1a"}),"\n",(0,c.jsx)(s.pre,{children:(0,c.jsx)(s.code,{className:"language-shell",children:"# \u8fd9\u4e2a\u53cd\u659c\u6760\u8f6c\u4e49\u786e\u4fdd\u5728\u521b\u5efa\u7684\u6587\u4ef6\u5939\u540d\u79f0\u4e2d\u5305\u542b\u4e00\u4e2a\u5b57\u9762\u4e0a\u7684\u7f8e\u5143\u7b26\u53f7\uff1a\ngit clone https://github.com/example/project.git \\$project\n"})}),"\n",(0,c.jsxs)(s.p,{children:["\u5f53 ",(0,c.jsx)(s.code,{children:"sparo"})," \u547d\u4ee4\u884c\u8c03\u7528\u5b50\u8fdb\u7a0b\uff08\u5982 ",(0,c.jsx)(s.code,{children:"git"}),"\uff09\u65f6\uff0c\u5b83\u5fc5\u987b\u4ed4\u7ec6\u786e\u4fdd\u8fdb\u7a0b\u53c2\u6570\u88ab\u6b63\u786e\u8f6c\u4e49\uff0c\u4ee5\u907f\u514d\u88ab shell \u8f6c\u6362\u3002\u4f8b\u5982\uff0c\u5982\u679c ",(0,c.jsx)(s.code,{children:"\\$project"})," \u5728\u5b50\u8fdb\u7a0b\u8c03\u7528\u671f\u95f4\u88ab shell \u6269\u5c55\uff0c\u8f6c\u4e49\u5c06\u5931\u6548\uff0c\u8fd9\u53ef\u80fd\u88ab\u5229\u7528\u6765\u89c4\u907f Sparo \u7684\u5176\u4ed6\u5b89\u5168\u4fdd\u8bc1\u3002\u5982\u679c\u67d0\u4e9b\u5b57\u7b26",(0,c.jsx)(s.a,{href:"https://github.com/microsoft/rushstack/blob/e2a17c81731cadc6b39b8e75c08dfccb9bc5ce9c/libraries/node-core-library/src/Executable.ts#L689",children:"\u65e0\u6cd5\u901a\u8fc7 Node.js \u5b89\u5168\u8f6c\u4e49"}),"\uff0c\u5219\u5e94\u901a\u8fc7\u9519\u8bef\u6d88\u606f\u5c06\u5176\u62d2\u7edd\u3002"]}),"\n",(0,c.jsx)(s.h2,{id:"\u5b89\u5168\u5047\u8bbe",children:"\u5b89\u5168\u5047\u8bbe"}),"\n",(0,c.jsx)(s.p,{children:"\u540c\u65f6\u6307\u51fa\u4e00\u4e9b\u4e0d\u671f\u671b\u662f\u5b89\u5168\u7684\u65b9\u9762\u4e5f\u5f88\u6709\u7528\u3002"}),"\n",(0,c.jsx)(s.h2,{id:"\u5047\u8bbeshell-\u73af\u5883\u53d8\u91cf\u662f\u53d7\u4fe1\u4efb\u7684",children:"\u5047\u8bbe\uff1aShell \u73af\u5883\u53d8\u91cf\u662f\u53d7\u4fe1\u4efb\u7684"}),"\n",(0,c.jsxs)(s.p,{children:["\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c",(0,c.jsx)(s.code,{children:"git"})," CLI \u5047\u8bbe shell \u73af\u5883\u53d8\u91cf\u662f\u53d7\u4fe1\u4efb\u7684\u3002\u4f8b\u5982\uff0c\u5b83\u4f9d\u8d56 ",(0,c.jsx)(s.code,{children:"PATH"})," \u53d8\u91cf\u6765\u53d1\u73b0 ",(0,c.jsx)(s.code,{children:"ssh"})," \u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u5e76\u4e14\u5927\u591a\u6570\u7236\u8fdb\u7a0b\u7684\u53d8\u91cf\u4f1a\u4f20\u9012\u7ed9\u5b50\u8fdb\u7a0b\u3002"]}),"\n",(0,c.jsxs)(s.p,{children:["\u7531\u4e8e Sparo \u5de5\u5177\u662f\u7531 Node.js \u8fd0\u884c\u65f6\u8c03\u7528\u7684\uff0c\u901a\u8fc7\u73af\u5883\u53d8\u91cf\uff08\u5982 ",(0,c.jsx)(s.a,{href:"https://nodejs.org/api/cli.html#node_optionsoptions",children:"NODE_OPTIONS"}),"\uff09\u6267\u884c\u4efb\u610f\u4ee3\u7801\u662f\u53ef\u80fd\u7684\u3002"]}),"\n",(0,c.jsx)(s.h2,{id:"\u5047\u8bbe\u547d\u4ee4\u884c\u901a\u5e38\u662f\u53d7\u4fe1\u4efb\u7684",children:"\u5047\u8bbe\uff1a\u547d\u4ee4\u884c\u901a\u5e38\u662f\u53d7\u4fe1\u4efb\u7684"}),"\n",(0,c.jsxs)(s.p,{children:[(0,c.jsx)(s.code,{children:"git"})," \u547d\u4ee4\u884c\u63a5\u53d7\u8bf8\u5982 ",(0,c.jsx)(s.a,{href:"https://git-scm.com/docs/git#Documentation/git.txt--cltnamegtltvaluegt",children:"-c"})," \u4e4b\u7c7b\u7684\u53c2\u6570\uff0c\u8fd9\u4e9b\u53c2\u6570\u53ef\u4ee5\u89e6\u53d1\u4efb\u610f\u4ee3\u7801\u7684\u6267\u884c\u3002\u56e0\u6b64\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5047\u8bbe\u547d\u4ee4\u884c\u53c2\u6570\u662f\u53d7\u4fe1\u4efb\u7684\u3002\u7136\u800c\uff0c\u67d0\u4e9b\u53c2\u6570\u53ef\u4ee5\u63d0\u4f9b\u66f4\u4e25\u683c\u7684\u4fdd\u8bc1\uff0c\u4f8b\u5982 ",(0,c.jsx)(s.strong,{children:"SS3"})," \u4e2d\u63d0\u5230\u7684 ",(0,c.jsx)(s.code,{children:"git clone"})," \u7684 ",(0,c.jsx)(s.code,{children:"<repository>"})," \u53c2\u6570\u3002"]}),"\n",(0,c.jsx)(s.h2,{id:"\u5047\u8bbe\u547d\u4ee4\u53ef\u80fd\u4f1a\u6d88\u8017\u8fc7\u591a\u8d44\u6e90",children:"\u5047\u8bbe\uff1a\u547d\u4ee4\u53ef\u80fd\u4f1a\u6d88\u8017\u8fc7\u591a\u8d44\u6e90"}),"\n",(0,c.jsxs)(s.p,{children:["\u8bf8\u5982 ",(0,c.jsx)(s.code,{children:"git clone"})," \u4e4b\u7c7b\u7684\u547d\u4ee4\u53ef\u80fd\u4f1a\u6d88\u8017\u4efb\u610f\u6570\u91cf\u7684\u78c1\u76d8\u7a7a\u95f4\u6216\u9700\u8981\u4efb\u610f\u957f\u7684\u65f6\u95f4\u624d\u80fd\u5b8c\u6210\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u62d2\u7edd\u670d\u52a1\u653b\u51fb\u5bf9\u4e8e\u8fd9\u79cd\u5f00\u53d1\u5de5\u5177\u6765\u8bf4\u4e0d\u88ab\u8ba4\u4e3a\u662f\u91cd\u8981\u7684\u98ce\u9669\u3002"]}),"\n",(0,c.jsx)(s.h2,{id:"\u5047\u8bbestdout-\u548c-stderr-\u53ef\u80fd\u5305\u542b\u4efb\u610f\u5b57\u7b26",children:"\u5047\u8bbe\uff1aSTDOUT \u548c STDERR \u53ef\u80fd\u5305\u542b\u4efb\u610f\u5b57\u7b26"}),"\n",(0,c.jsxs)(s.p,{children:["\u5728\u8c03\u7528 ",(0,c.jsx)(s.code,{children:"git"})," CLI \u65f6\uff0c\u63a7\u5236\u53f0\u8f93\u51fa\u53ef\u80fd\u5305\u542b\u7531\u94a9\u5b50\u811a\u672c\u6216\u5176\u4ed6 shell \u547d\u4ee4\u6253\u5370\u7684\u5b57\u7b26\u4e32\u3002\u8fd9\u4e9b\u5b57\u7b26\u4e32\u53ef\u80fd\u5305\u542b\u4e0d\u5b89\u5168\u7684\u7279\u6b8a\u5b57\u7b26\uff0c\u4e0d\u9002\u5408\u5d4c\u5165\u5230\u5176\u4ed6\u4e0a\u4e0b\u6587\u4e2d\uff0c\u5982 HTML \u6587\u6863\u6216 SQL \u5b57\u7b26\u4e32\u6587\u5b57\u4e2d\u3002\u8c03\u7528\u8fdb\u7a0b\u6709\u8d23\u4efb\u6b63\u786e\u8f6c\u4e49 ",(0,c.jsx)(s.code,{children:"git"})," \u6216 ",(0,c.jsx)(s.code,{children:"sparo"})," \u8fdb\u7a0b\u4ea7\u751f\u7684\u4efb\u4f55 STDOUT \u6216 STDERR \u8f93\u51fa\u3002"]})]})}function p(e={}){const{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,c.jsx)(s,{...e,children:(0,c.jsx)(h,{...e})}):h(e)}},4738:(e,s,n)=>{n.d(s,{R:()=>t,x:()=>l});var c=n(6166);const i={},r=c.createContext(i);function t(e){const s=c.useContext(r);return c.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function l(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:t(e.components),c.createElement(r.Provider,{value:s},e.children)}}}]); |