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

1 line
4.6 KiB
JavaScript

"use strict";(self.webpackChunkdeveloper_zsc=self.webpackChunkdeveloper_zsc||[]).push([[3088],{389:(n,e,i)=>{i.r(e),i.d(e,{assets:()=>d,contentTitle:()=>c,default:()=>x,frontMatter:()=>t,metadata:()=>s,toc:()=>h});const s=JSON.parse('{"id":"devdocs/\u57f9\u8bad/git/\u6982\u89c8","title":"\u6982\u89c8Git","description":"\u8fd9\u91cc\u662fgit\u7684\u4e00\u4e2a\u7b80\u77ed\u6559\u7a0b","source":"@site/docs/devdocs/09-\u57f9\u8bad/01-git/01-\u6982\u89c8.md","sourceDirName":"devdocs/09-\u57f9\u8bad/01-git","slug":"/devdocs/\u57f9\u8bad/git/\u6982\u89c8","permalink":"/docs/devdocs/\u57f9\u8bad/git/\u6982\u89c8","draft":false,"unlisted":false,"editUrl":"https://github.com/ZSCNetSupportDept/website/tree/master/docs/devdocs/09-\u57f9\u8bad/01-git/01-\u6982\u89c8.md","tags":[],"version":"current","lastUpdatedAt":1728912210000,"sidebarPosition":1,"frontMatter":{},"sidebar":"devdocs","previous":{"title":"\u4e0b\u8f7d","permalink":"/docs/devdocs/\u4e0b\u8f7d"},"next":{"title":"\u4ec0\u4e48\u662f\u7248\u672c\u63a7\u5236\u7cfb\u7edf(VCS)?","permalink":"/docs/devdocs/\u57f9\u8bad/git/\u4ecb\u7ecd-\u505a\u4e3a\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u7684git/vcs"}}');var l=i(4848),r=i(8453);const t={},c="\u6982\u89c8Git",d={},h=[{value:"\u76ee\u5f55",id:"\u76ee\u5f55",level:2}];function o(n){const e={h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",ul:"ul",...(0,r.R)(),...n.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(e.header,{children:(0,l.jsx)(e.h1,{id:"\u6982\u89c8git",children:"\u6982\u89c8Git"})}),"\n",(0,l.jsx)(e.p,{children:"\u8fd9\u91cc\u662fgit\u7684\u4e00\u4e2a\u7b80\u77ed\u6559\u7a0b"}),"\n",(0,l.jsx)(e.h2,{id:"\u76ee\u5f55",children:"\u76ee\u5f55"}),"\n",(0,l.jsx)(e.p,{children:"\u672c\u6559\u7a0b\u7684\u76ee\u5f55\u3002\u3002\u3002"}),"\n",(0,l.jsxs)(e.ol,{children:["\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsx)(e.p,{children:"\u4ecb\u7ecd-\u505a\u4e3a\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u7684git"}),"\n",(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsx)(e.li,{children:"\u4ec0\u4e48\u662f\u7248\u672c\u63a7\u5236\u7cfb\u7edf(VCS)?"}),"\n",(0,l.jsx)(e.li,{children:"git\u662f\u5982\u4f55\u8fdb\u884c\u7248\u672c\u63a7\u5236\u7684\uff1f"}),"\n"]}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsx)(e.p,{children:"git\u7684\u57fa\u7840\u6982\u5ff5"}),"\n",(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsx)(e.li,{children:"\u65b0\u5efa\u4e00\u4e2agit\u4ed3\u5e93"}),"\n",(0,l.jsx)(e.li,{children:"\u8ddf\u8e2a\u6587\u4ef6\uff0c\u6682\u5b58\u6587\u4ef6"}),"\n",(0,l.jsx)(e.li,{children:"\u63d0\u4ea4commit"}),"\n",(0,l.jsx)(e.li,{children:"\u5206\u652f(branch)\u4ecb\u7ecd"}),"\n",(0,l.jsxs)(e.li,{children:["\u5408\u5e76-merge\u4e0erebase","\n",(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsx)(e.li,{children:"cherry-pick"}),"\n"]}),"\n"]}),"\n",(0,l.jsx)(e.li,{children:"HEAD\u548c\u76f8\u5bf9\u5f15\u7528"}),"\n"]}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsx)(e.p,{children:"\u8fdc\u7a0b\u4ed3\u5e93"}),"\n",(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsx)(e.li,{children:"clone\u548corigin"}),"\n",(0,l.jsx)(e.li,{children:"\u8fdc\u7a0b\u5206\u652f\u662f\u4ec0\u4e48"}),"\n",(0,l.jsx)(e.li,{children:"fetch , pull & push !"}),"\n"]}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsx)(e.p,{children:"\u6258\u7ba1\u5e73\u53f0"}),"\n",(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsx)(e.li,{children:"github"}),"\n",(0,l.jsx)(e.li,{children:"gitlab"}),"\n",(0,l.jsx)(e.li,{children:"gitea"}),"\n"]}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\n",(0,l.jsx)(e.p,{children:"\u9ad8\u7ea7"}),"\n",(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsxs)(e.li,{children:["GUI","\n",(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsx)(e.li,{children:"git-gui"}),"\n",(0,l.jsx)(e.li,{children:"vscode\u4e0a\u7684\u4e00\u4e9b\u6269\u5c55"}),"\n",(0,l.jsx)(e.li,{children:"lazygit"}),"\n"]}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\u81ea\u5efagit\u670d\u52a1","\n",(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsx)(e.li,{children:"gitea"}),"\n"]}),"\n"]}),"\n",(0,l.jsxs)(e.li,{children:["\u53c2\u8003","\n",(0,l.jsxs)(e.ul,{children:["\n",(0,l.jsx)(e.li,{children:"pro git"}),"\n",(0,l.jsx)(e.li,{children:"learngitbranching.js.org"}),"\n"]}),"\n"]}),"\n"]}),"\n"]}),"\n"]})]})}function x(n={}){const{wrapper:e}={...(0,r.R)(),...n.components};return e?(0,l.jsx)(e,{...n,children:(0,l.jsx)(o,{...n})}):o(n)}},8453:(n,e,i)=>{i.d(e,{R:()=>t,x:()=>c});var s=i(6540);const l={},r=s.createContext(l);function t(n){const e=s.useContext(r);return s.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function c(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(l):n.components||l:t(n.components),s.createElement(r.Provider,{value:e},n.children)}}}]);