index.html 81 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514
  1. <!doctype html>
  2. <html lang="zh" class="no-js">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <meta name="author" content="Wcowin">
  7. <link rel="canonical" href="http://wcowin.work/Mkdocs-Wcowin/develop/git/">
  8. <link rel="prev" href="../Markdown/MWeb/">
  9. <link rel="next" href="../lighthouse/">
  10. <link rel="icon" href="../../img/apple-line.png">
  11. <meta name="generator" content="mkdocs-1.5.3, mkdocs-material-9.4.2">
  12. <title>Git 实用技巧 - Mkdocs-Wcowin中文主题</title>
  13. <link rel="stylesheet" href="../../assets/stylesheets/main.d451bc0e.min.css">
  14. <link rel="stylesheet" href="../../assets/stylesheets/palette.a5377069.min.css">
  15. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  16. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
  17. <style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
  18. <link rel="stylesheet" href="../../stylesheets/extra.css">
  19. <link rel="stylesheet" href="../../stylesheets/link.css">
  20. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.css">
  21. <link rel="stylesheet" href="../../ckplayer/css/ckplayer.css">
  22. <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
  23. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css">
  24. <script>__md_scope=new URL("../..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
  25. <script id="__analytics">function __md_analytics(){function n(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],n("js",new Date),n("config",""),document.addEventListener("DOMContentLoaded",function(){document.forms.search&&document.forms.search.query.addEventListener("blur",function(){this.value&&n("event","search",{search_term:this.value})}),document$.subscribe(function(){var a=document.forms.feedback;if(void 0!==a)for(var e of a.querySelectorAll("[type=submit]"))e.addEventListener("click",function(e){e.preventDefault();var t=document.location.pathname,e=this.getAttribute("data-md-value");n("event","feedback",{page:t,data:e}),a.firstElementChild.disabled=!0;e=a.querySelector(".md-feedback__note [data-md-value='"+e+"']");e&&(e.hidden=!1)}),a.hidden=!1}),location$.subscribe(function(e){n("config","",{page_path:e.pathname})})});var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=",document.getElementById("__analytics").insertAdjacentElement("afterEnd",e)}</script>
  26. <script>"undefined"!=typeof __md_analytics&&__md_analytics()</script>
  27. <link rel="stylesheet" href="../../assets/stylesheets/custom.00c04c01.min.css">
  28. </head>
  29. <body dir="ltr" data-md-color-scheme="default" data-md-color-primary="blue-grey" data-md-color-accent="indigo">
  30. <script>var palette=__md_get("__palette");if(palette&&"object"==typeof palette.color)for(var key of Object.keys(palette.color))document.body.setAttribute("data-md-color-"+key,palette.color[key])</script>
  31. <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
  32. <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
  33. <label class="md-overlay" for="__drawer"></label>
  34. <div data-md-component="skip">
  35. <a href="#git-实用技巧" class="md-skip">
  36. 跳转至
  37. </a>
  38. </div>
  39. <div data-md-component="announce">
  40. <aside class="md-banner">
  41. <div class="md-banner__inner md-grid md-typeset">
  42. <button class="md-banner__button md-icon" aria-label="不再显示此消息">
  43. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
  44. </button>
  45. Follow <strong>@Wcowin</strong> on
  46. <a rel="me" href="https://space.bilibili.com/1407028951?spm_id_from=333.1007.0.0">
  47. <span class="twemoji bilibili">
  48. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M488.6 104.1c16.7 18.1 24.4 39.7 23.3 65.7v202.4c-.4 26.4-9.2 48.1-26.5 65.1-17.2 17-39.1 25.9-65.5 26.7H92.02c-26.45-.8-48.21-9.8-65.28-27.2C9.682 419.4.767 396.5 0 368.2V169.8c.767-26 9.682-47.6 26.74-65.7C43.81 87.75 65.57 78.77 92.02 78h29.38L96.05 52.19c-5.75-5.73-8.63-13-8.63-21.79 0-8.8 2.88-16.06 8.63-21.797C101.8 2.868 109.1 0 117.9 0s16.1 2.868 21.9 8.603L213.1 78h88l74.5-69.397C381.7 2.868 389.2 0 398 0c8.8 0 16.1 2.868 21.9 8.603 5.7 5.737 8.6 12.997 8.6 21.797 0 8.79-2.9 16.06-8.6 21.79L394.6 78h29.3c26.4.77 48 9.75 64.7 26.1zm-38.8 69.7c-.4-9.6-3.7-17.4-10.7-23.5-5.2-6.1-14-9.4-22.7-9.8H96.05c-9.59.4-17.45 3.7-23.58 9.8-6.14 6.1-9.4 13.9-9.78 23.5v194.4c0 9.2 3.26 17 9.78 23.5s14.38 9.8 23.58 9.8H416.4c9.2 0 17-3.3 23.3-9.8 6.3-6.5 9.7-14.3 10.1-23.5V173.8zm-264.3 42.7c6.3 6.3 9.7 14.1 10.1 23.2V273c-.4 9.2-3.7 16.9-9.8 23.2-6.2 6.3-14 9.5-23.6 9.5-9.6 0-17.5-3.2-23.6-9.5-6.1-6.3-9.4-14-9.8-23.2v-33.3c.4-9.1 3.8-16.9 10.1-23.2 6.3-6.3 13.2-9.6 23.3-10 9.2.4 17 3.7 23.3 10zm191.5 0c6.3 6.3 9.7 14.1 10.1 23.2V273c-.4 9.2-3.7 16.9-9.8 23.2-6.1 6.3-14 9.5-23.6 9.5-9.6 0-17.4-3.2-23.6-9.5-7-6.3-9.4-14-9.7-23.2v-33.3c.3-9.1 3.7-16.9 10-23.2 6.3-6.3 14.1-9.6 23.3-10 9.2.4 17 3.7 23.3 10z"/></svg>
  49. </span>
  50. <strong>Bilibili</strong>
  51. </a>
  52. and
  53. <a href="https://twitter.com/Wcowin_">
  54. <span class="twemoji twitter">
  55. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"/></svg>
  56. </span>
  57. <strong>Twitter</strong>
  58. </a>
  59. </div>
  60. <script>var content,el=document.querySelector("[data-md-component=announce]");el&&(content=el.querySelector(".md-typeset"),__md_hash(content.innerHTML)===__md_get("__announce")&&(el.hidden=!0))</script>
  61. </aside>
  62. </div>
  63. <header class="md-header" data-md-component="header">
  64. <nav class="md-header__inner md-grid" aria-label="页眉">
  65. <a href="../.." title="Mkdocs-Wcowin中文主题" class="md-header__button md-logo" aria-label="Mkdocs-Wcowin中文主题" data-md-component="logo">
  66. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
  67. </a>
  68. <label class="md-header__button md-icon" for="__drawer">
  69. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
  70. </label>
  71. <div class="md-header__title" data-md-component="header-title">
  72. <div class="md-header__ellipsis">
  73. <div class="md-header__topic">
  74. <span class="md-ellipsis">
  75. Mkdocs-Wcowin中文主题
  76. </span>
  77. </div>
  78. <div class="md-header__topic" data-md-component="header-topic">
  79. <span class="md-ellipsis">
  80. Git 实用技巧
  81. </span>
  82. </div>
  83. </div>
  84. </div>
  85. <form class="md-header__option" data-md-component="palette">
  86. <input class="md-option" data-md-color-media="(prefers-color-scheme: light)" data-md-color-scheme="default" data-md-color-primary="blue-grey" data-md-color-accent="indigo" aria-label="切换至夜间模式" type="radio" name="__palette" id="__palette_1">
  87. <label class="md-header__button md-icon" title="切换至夜间模式" for="__palette_2" hidden>
  88. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m17.75 4.09-2.53 1.94.91 3.06-2.63-1.81-2.63 1.81.91-3.06-2.53-1.94L12.44 4l1.06-3 1.06 3 3.19.09m3.5 6.91-1.64 1.25.59 1.98-1.7-1.17-1.7 1.17.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95 2.06.05m-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14.4-.4.82-.76 1.27-1.08.75-.53 1.93.36 1.85 1.19-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82-2.81 3.14-2.7 7.96.31 10.98 3.02 3.01 7.84 3.12 10.98.31Z"/></svg>
  89. </label>
  90. <input class="md-option" data-md-color-media="(prefers-color-scheme: dark)" data-md-color-scheme="slate" data-md-color-primary="black" data-md-color-accent="indigo" aria-label="切换至日间模式" type="radio" name="__palette" id="__palette_2">
  91. <label class="md-header__button md-icon" title="切换至日间模式" for="__palette_1" hidden>
  92. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0-7 2.39 3.42C13.65 5.15 12.84 5 12 5c-.84 0-1.65.15-2.39.42L12 2M3.34 7l4.16-.35A7.2 7.2 0 0 0 5.94 8.5c-.44.74-.69 1.5-.83 2.29L3.34 7m.02 10 1.76-3.77a7.131 7.131 0 0 0 2.38 4.14L3.36 17M20.65 7l-1.77 3.79a7.023 7.023 0 0 0-2.38-4.15l4.15.36m-.01 10-4.14.36c.59-.51 1.12-1.14 1.54-1.86.42-.73.69-1.5.83-2.29L20.64 17M12 22l-2.41-3.44c.74.27 1.55.44 2.41.44.82 0 1.63-.17 2.37-.44L12 22Z"/></svg>
  93. </label>
  94. </form>
  95. <label class="md-header__button md-icon" for="__search">
  96. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
  97. </label>
  98. <div class="md-search" data-md-component="search" role="dialog">
  99. <label class="md-search__overlay" for="__search"></label>
  100. <div class="md-search__inner" role="search">
  101. <form class="md-search__form" name="search">
  102. <input type="text" class="md-search__input" name="query" aria-label="搜索" placeholder="搜索" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
  103. <label class="md-search__icon md-icon" for="__search">
  104. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
  105. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
  106. </label>
  107. <nav class="md-search__options" aria-label="查找">
  108. <a href="javascript:void(0)" class="md-search__icon md-icon" title="分享" aria-label="分享" data-clipboard data-clipboard-text="" data-md-component="search-share" tabindex="-1">
  109. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7 0-.24-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9a3 3 0 0 0-3 3 3 3 0 0 0 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.15c-.05.21-.08.43-.08.66 0 1.61 1.31 2.91 2.92 2.91 1.61 0 2.92-1.3 2.92-2.91A2.92 2.92 0 0 0 18 16.08Z"/></svg>
  110. </a>
  111. <button type="reset" class="md-search__icon md-icon" title="清空当前内容" aria-label="清空当前内容" tabindex="-1">
  112. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
  113. </button>
  114. </nav>
  115. <div class="md-search__suggest" data-md-component="search-suggest"></div>
  116. </form>
  117. <div class="md-search__output">
  118. <div class="md-search__scrollwrap" data-md-scrollfix>
  119. <div class="md-search-result" data-md-component="search-result">
  120. <div class="md-search-result__meta">
  121. 正在初始化搜索引擎
  122. </div>
  123. <ol class="md-search-result__list" role="presentation"></ol>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="md-header__source">
  130. <a href="https://github.com/Wcowin/Mkdocs-Wcowin" title="前往仓库" class="md-source" data-md-component="source">
  131. <div class="md-source__icon md-icon">
  132. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
  133. </div>
  134. <div class="md-source__repository">
  135. Mkdocs-Wcowin
  136. </div>
  137. </a>
  138. </div>
  139. </nav>
  140. </header>
  141. <div class="md-container" data-md-component="container">
  142. <nav class="md-tabs" aria-label="标签" data-md-component="tabs">
  143. <div class="md-grid">
  144. <ul class="md-tabs__list">
  145. <li class="md-tabs__item">
  146. <a href="../../blog/Mkdocs/mkdocs1/" class="md-tabs__link">
  147. MKdocs中文教程
  148. </a>
  149. </li>
  150. <li class="md-tabs__item md-tabs__item--active">
  151. <a href="../Markdown/markdown/" class="md-tabs__link">
  152. 建设MKdocs技能指北
  153. </a>
  154. </li>
  155. <li class="md-tabs__item">
  156. <a href="../../tag/" class="md-tabs__link">
  157. 标签
  158. </a>
  159. </li>
  160. <li class="md-tabs__item">
  161. <a href="../../liuyanban/" class="md-tabs__link">
  162. 留言板
  163. </a>
  164. </li>
  165. <li class="md-tabs__item">
  166. <a href="../../blog/" class="md-tabs__link">
  167. Blogger
  168. </a>
  169. </li>
  170. <li class="md-tabs__item">
  171. <a href="../../about/link/" class="md-tabs__link">
  172. 友链
  173. </a>
  174. </li>
  175. <li class="md-tabs__item">
  176. <a href="../../about/geren/" class="md-tabs__link">
  177. 关于
  178. </a>
  179. </li>
  180. </ul>
  181. </div>
  182. </nav>
  183. <main class="md-main" data-md-component="main">
  184. <div class="md-main__inner md-grid">
  185. <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
  186. <div class="md-sidebar__scrollwrap">
  187. <div class="md-sidebar__inner">
  188. <nav class="md-nav md-nav--primary md-nav--lifted" aria-label="导航栏" data-md-level="0">
  189. <label class="md-nav__title" for="__drawer">
  190. <a href="../.." title="Mkdocs-Wcowin中文主题" class="md-nav__button md-logo" aria-label="Mkdocs-Wcowin中文主题" data-md-component="logo">
  191. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
  192. </a>
  193. Mkdocs-Wcowin中文主题
  194. </label>
  195. <div class="md-nav__source">
  196. <a href="https://github.com/Wcowin/Mkdocs-Wcowin" title="前往仓库" class="md-source" data-md-component="source">
  197. <div class="md-source__icon md-icon">
  198. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
  199. </div>
  200. <div class="md-source__repository">
  201. Mkdocs-Wcowin
  202. </div>
  203. </a>
  204. </div>
  205. <ul class="md-nav__list" data-md-scrollfix>
  206. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  207. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_1" >
  208. <label class="md-nav__link" for="__nav_1" id="__nav_1_label" tabindex="">
  209. <span class="md-ellipsis">
  210. MKdocs中文教程
  211. </span>
  212. <span class="md-nav__icon md-icon"></span>
  213. </label>
  214. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_1_label" aria-expanded="false">
  215. <label class="md-nav__title" for="__nav_1">
  216. <span class="md-nav__icon md-icon"></span>
  217. MKdocs中文教程
  218. </label>
  219. <ul class="md-nav__list" data-md-scrollfix>
  220. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  221. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_1_1" >
  222. <label class="md-nav__link" for="__nav_1_1" id="__nav_1_1_label" tabindex="">
  223. <span class="md-ellipsis">
  224. MKdocs教程
  225. </span>
  226. <span class="md-nav__icon md-icon"></span>
  227. </label>
  228. <nav class="md-nav" data-md-level="2" aria-labelledby="__nav_1_1_label" aria-expanded="false">
  229. <label class="md-nav__title" for="__nav_1_1">
  230. <span class="md-nav__icon md-icon"></span>
  231. MKdocs教程
  232. </label>
  233. <ul class="md-nav__list" data-md-scrollfix>
  234. <li class="md-nav__item">
  235. <a href="../../blog/Mkdocs/mkdocs1/" class="md-nav__link">
  236. <span class="md-ellipsis">
  237. 利用mkdocs部署静态网页至GitHub pages
  238. </span>
  239. </a>
  240. </li>
  241. <li class="md-nav__item">
  242. <a href="../../blog/Mkdocs/mkdocs2/" class="md-nav__link">
  243. <span class="md-ellipsis">
  244. Mkdocs部署静态网页至GitHub pages配置说明(mkdocs.yml)
  245. </span>
  246. </a>
  247. </li>
  248. <li class="md-nav__item">
  249. <a href="../../blog/Mkdocs/mkdocs3/" class="md-nav__link">
  250. <span class="md-ellipsis">
  251. 解决 mkdocs部署 Github Pages 自定义域名失效的问题
  252. </span>
  253. </a>
  254. </li>
  255. <li class="md-nav__item">
  256. <a href="../../blog/Mkdocs/mkdocsblog/" class="md-nav__link">
  257. <span class="md-ellipsis">
  258. 网站添加Mkdocs博客
  259. </span>
  260. </a>
  261. </li>
  262. </ul>
  263. </nav>
  264. </li>
  265. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  266. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_1_2" >
  267. <label class="md-nav__link" for="__nav_1_2" id="__nav_1_2_label" tabindex="">
  268. <span class="md-ellipsis">
  269. Mkdocs美化
  270. </span>
  271. <span class="md-nav__icon md-icon"></span>
  272. </label>
  273. <nav class="md-nav" data-md-level="2" aria-labelledby="__nav_1_2_label" aria-expanded="false">
  274. <label class="md-nav__title" for="__nav_1_2">
  275. <span class="md-nav__icon md-icon"></span>
  276. Mkdocs美化
  277. </label>
  278. <ul class="md-nav__list" data-md-scrollfix>
  279. <li class="md-nav__item">
  280. <a href="../../blog/websitebeauty/mkcomments/" class="md-nav__link">
  281. <span class="md-ellipsis">
  282. 添加评论系统(giscus为例)
  283. </span>
  284. </a>
  285. </li>
  286. <li class="md-nav__item">
  287. <a href="../../blog/websitebeauty/webtalknow/" class="md-nav__link">
  288. <span class="md-ellipsis">
  289. 添加在线聊天
  290. </span>
  291. </a>
  292. </li>
  293. <li class="md-nav__item">
  294. <a href="../../blog/websitebeauty/linktech/" class="md-nav__link">
  295. <span class="md-ellipsis">
  296. 添加友链
  297. </span>
  298. </a>
  299. </li>
  300. <li class="md-nav__item">
  301. <a href="../../blog/websitebeauty/mkdocsfont/" class="md-nav__link">
  302. <span class="md-ellipsis">
  303. 修改网站字体
  304. </span>
  305. </a>
  306. </li>
  307. <li class="md-nav__item">
  308. <a href="../../blog/websitebeauty/shubiao/" class="md-nav__link">
  309. <span class="md-ellipsis">
  310. JS实现鼠标样式
  311. </span>
  312. </a>
  313. </li>
  314. <li class="md-nav__item">
  315. <a href="../../blog/websitebeauty/backgroud/" class="md-nav__link">
  316. <span class="md-ellipsis">
  317. 背景特效
  318. </span>
  319. </a>
  320. </li>
  321. </ul>
  322. </nav>
  323. </li>
  324. </ul>
  325. </nav>
  326. </li>
  327. <li class="md-nav__item md-nav__item--active md-nav__item--section md-nav__item--nested">
  328. <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" checked>
  329. <label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="">
  330. <span class="md-ellipsis">
  331. 建设MKdocs技能指北
  332. </span>
  333. <span class="md-nav__icon md-icon"></span>
  334. </label>
  335. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="true">
  336. <label class="md-nav__title" for="__nav_2">
  337. <span class="md-nav__icon md-icon"></span>
  338. 建设MKdocs技能指北
  339. </label>
  340. <ul class="md-nav__list" data-md-scrollfix>
  341. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  342. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_2_1" >
  343. <label class="md-nav__link" for="__nav_2_1" id="__nav_2_1_label" tabindex="">
  344. <span class="md-ellipsis">
  345. Markdown
  346. </span>
  347. <span class="md-nav__icon md-icon"></span>
  348. </label>
  349. <nav class="md-nav" data-md-level="2" aria-labelledby="__nav_2_1_label" aria-expanded="false">
  350. <label class="md-nav__title" for="__nav_2_1">
  351. <span class="md-nav__icon md-icon"></span>
  352. Markdown
  353. </label>
  354. <ul class="md-nav__list" data-md-scrollfix>
  355. <li class="md-nav__item">
  356. <a href="../Markdown/markdown/" class="md-nav__link">
  357. <span class="md-ellipsis">
  358. Markdown指南
  359. </span>
  360. </a>
  361. </li>
  362. <li class="md-nav__item">
  363. <a href="../Markdown/MWeb/" class="md-nav__link">
  364. <span class="md-ellipsis">
  365. MWeb Pro
  366. </span>
  367. </a>
  368. </li>
  369. </ul>
  370. </nav>
  371. </li>
  372. <li class="md-nav__item md-nav__item--active">
  373. <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
  374. <label class="md-nav__link md-nav__link--active" for="__toc">
  375. <span class="md-ellipsis">
  376. Git 实用技巧
  377. </span>
  378. <span class="md-nav__icon md-icon"></span>
  379. </label>
  380. <a href="./" class="md-nav__link md-nav__link--active">
  381. <span class="md-ellipsis">
  382. Git 实用技巧
  383. </span>
  384. </a>
  385. <nav class="md-nav md-nav--secondary" aria-label="目录">
  386. <label class="md-nav__title" for="__toc">
  387. <span class="md-nav__icon md-icon"></span>
  388. 目录
  389. </label>
  390. <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
  391. <li class="md-nav__item">
  392. <a href="#一基本操作" class="md-nav__link">
  393. 一、基本操作
  394. </a>
  395. <nav class="md-nav" aria-label="一、基本操作">
  396. <ul class="md-nav__list">
  397. <li class="md-nav__item">
  398. <a href="#1-新建-git-仓库" class="md-nav__link">
  399. 1. 新建 git 仓库
  400. </a>
  401. </li>
  402. <li class="md-nav__item">
  403. <a href="#2-克隆远程仓库" class="md-nav__link">
  404. 2. 克隆远程仓库
  405. </a>
  406. </li>
  407. <li class="md-nav__item">
  408. <a href="#3-提交代码" class="md-nav__link">
  409. 3. 提交代码
  410. </a>
  411. </li>
  412. <li class="md-nav__item">
  413. <a href="#4-查看仓库状态" class="md-nav__link">
  414. 4. 查看仓库状态
  415. </a>
  416. </li>
  417. <li class="md-nav__item">
  418. <a href="#5-查看提交历史" class="md-nav__link">
  419. 5. 查看提交历史
  420. </a>
  421. </li>
  422. <li class="md-nav__item">
  423. <a href="#6-新建分支" class="md-nav__link">
  424. 6. 新建分支
  425. </a>
  426. </li>
  427. <li class="md-nav__item">
  428. <a href="#7-合并分支" class="md-nav__link">
  429. 7. 合并分支
  430. </a>
  431. </li>
  432. <li class="md-nav__item">
  433. <a href="#8-删除分支" class="md-nav__link">
  434. 8. 删除分支
  435. </a>
  436. </li>
  437. <li class="md-nav__item">
  438. <a href="#9-合并冲突" class="md-nav__link">
  439. 9. 合并冲突
  440. </a>
  441. </li>
  442. <li class="md-nav__item">
  443. <a href="#10-远程仓库" class="md-nav__link">
  444. 10. 远程仓库
  445. </a>
  446. </li>
  447. </ul>
  448. </nav>
  449. </li>
  450. <li class="md-nav__item">
  451. <a href="#二常见技巧" class="md-nav__link">
  452. 二、常见技巧
  453. </a>
  454. <nav class="md-nav" aria-label="二、常见技巧">
  455. <ul class="md-nav__list">
  456. <li class="md-nav__item">
  457. <a href="#1-临时保存成果" class="md-nav__link">
  458. 1. 临时保存成果
  459. </a>
  460. </li>
  461. <li class="md-nav__item">
  462. <a href="#2-合并分支灵活选择-rebasemerge" class="md-nav__link">
  463. 2. 合并分支灵活选择 rebase/merge
  464. </a>
  465. </li>
  466. <li class="md-nav__item">
  467. <a href="#3-cherry-pick" class="md-nav__link">
  468. 3. cherry-pick
  469. </a>
  470. </li>
  471. <li class="md-nav__item">
  472. <a href="#4-修改上次提交" class="md-nav__link">
  473. 4. 修改上次提交
  474. </a>
  475. </li>
  476. <li class="md-nav__item">
  477. <a href="#5-取消文件修改" class="md-nav__link">
  478. 5. 取消文件修改
  479. </a>
  480. </li>
  481. <li class="md-nav__item">
  482. <a href="#6-弃用提交" class="md-nav__link">
  483. 6. 弃用提交
  484. </a>
  485. </li>
  486. <li class="md-nav__item">
  487. <a href="#7-补丁文件" class="md-nav__link">
  488. 7. 补丁文件
  489. </a>
  490. </li>
  491. </ul>
  492. </nav>
  493. </li>
  494. </ul>
  495. </nav>
  496. </li>
  497. <li class="md-nav__item">
  498. <a href="../lighthouse/" class="md-nav__link">
  499. <span class="md-ellipsis">
  500. 利用Lighthouse测试网站性能
  501. </span>
  502. </a>
  503. </li>
  504. <li class="md-nav__item">
  505. <a href="../vercel/" class="md-nav__link">
  506. <span class="md-ellipsis">
  507. 如何将 github pages 迁移到 vercel 上托管
  508. </span>
  509. </a>
  510. </li>
  511. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  512. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_2_5" >
  513. <label class="md-nav__link" for="__nav_2_5" id="__nav_2_5_label" tabindex="">
  514. <span class="md-ellipsis">
  515. 设计美学
  516. </span>
  517. <span class="md-nav__icon md-icon"></span>
  518. </label>
  519. <nav class="md-nav" data-md-level="2" aria-labelledby="__nav_2_5_label" aria-expanded="false">
  520. <label class="md-nav__title" for="__nav_2_5">
  521. <span class="md-nav__icon md-icon"></span>
  522. 设计美学
  523. </label>
  524. <ul class="md-nav__list" data-md-scrollfix>
  525. <li class="md-nav__item">
  526. <a href="../designbeauty/db1/" class="md-nav__link">
  527. <span class="md-ellipsis">
  528. 唐·诺曼—情感设计的三个层次
  529. </span>
  530. </a>
  531. </li>
  532. <li class="md-nav__item">
  533. <a href="../designbeauty/my-to-desihn/" class="md-nav__link">
  534. <span class="md-ellipsis">
  535. 我对设计的一些观点
  536. </span>
  537. </a>
  538. </li>
  539. </ul>
  540. </nav>
  541. </li>
  542. </ul>
  543. </nav>
  544. </li>
  545. <li class="md-nav__item">
  546. <a href="../../tag/" class="md-nav__link">
  547. <span class="md-ellipsis">
  548. 标签
  549. </span>
  550. </a>
  551. </li>
  552. <li class="md-nav__item">
  553. <a href="../../liuyanban/" class="md-nav__link">
  554. <span class="md-ellipsis">
  555. 留言板
  556. </span>
  557. </a>
  558. </li>
  559. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  560. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_5" >
  561. <div class="md-nav__link md-nav__container">
  562. <a href="../../blog/" class="md-nav__link ">
  563. <span class="md-ellipsis">
  564. Blogger
  565. </span>
  566. </a>
  567. <label class="md-nav__link " for="__nav_5" id="__nav_5_label" tabindex="">
  568. <span class="md-nav__icon md-icon"></span>
  569. </label>
  570. </div>
  571. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
  572. <label class="md-nav__title" for="__nav_5">
  573. <span class="md-nav__icon md-icon"></span>
  574. Blogger
  575. </label>
  576. <ul class="md-nav__list" data-md-scrollfix>
  577. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  578. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_5_2" >
  579. <label class="md-nav__link" for="__nav_5_2" id="__nav_5_2_label" tabindex="">
  580. <span class="md-ellipsis">
  581. 归档
  582. </span>
  583. <span class="md-nav__icon md-icon"></span>
  584. </label>
  585. <nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_2_label" aria-expanded="false">
  586. <label class="md-nav__title" for="__nav_5_2">
  587. <span class="md-nav__icon md-icon"></span>
  588. 归档
  589. </label>
  590. <ul class="md-nav__list" data-md-scrollfix>
  591. <li class="md-nav__item">
  592. <a href="../../blog/archive/2023/" class="md-nav__link">
  593. <span class="md-ellipsis">
  594. 2023
  595. </span>
  596. </a>
  597. </li>
  598. </ul>
  599. </nav>
  600. </li>
  601. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  602. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_5_3" >
  603. <label class="md-nav__link" for="__nav_5_3" id="__nav_5_3_label" tabindex="">
  604. <span class="md-ellipsis">
  605. 分类
  606. </span>
  607. <span class="md-nav__icon md-icon"></span>
  608. </label>
  609. <nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_3_label" aria-expanded="false">
  610. <label class="md-nav__title" for="__nav_5_3">
  611. <span class="md-nav__icon md-icon"></span>
  612. 分类
  613. </label>
  614. <ul class="md-nav__list" data-md-scrollfix>
  615. <li class="md-nav__item">
  616. <a href="../../blog/category/%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/" class="md-nav__link">
  617. <span class="md-ellipsis">
  618. 网站更新记录
  619. </span>
  620. </a>
  621. </li>
  622. <li class="md-nav__item">
  623. <a href="../../blog/category/hello/" class="md-nav__link">
  624. <span class="md-ellipsis">
  625. Hello
  626. </span>
  627. </a>
  628. </li>
  629. </ul>
  630. </nav>
  631. </li>
  632. </ul>
  633. </nav>
  634. </li>
  635. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  636. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_6" >
  637. <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="">
  638. <span class="md-ellipsis">
  639. 友链
  640. </span>
  641. <span class="md-nav__icon md-icon"></span>
  642. </label>
  643. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
  644. <label class="md-nav__title" for="__nav_6">
  645. <span class="md-nav__icon md-icon"></span>
  646. 友链
  647. </label>
  648. <ul class="md-nav__list" data-md-scrollfix>
  649. <li class="md-nav__item">
  650. <a href="../../about/link/" class="md-nav__link">
  651. <span class="md-ellipsis">
  652. 友链
  653. </span>
  654. </a>
  655. </li>
  656. </ul>
  657. </nav>
  658. </li>
  659. <li class="md-nav__item md-nav__item--section md-nav__item--nested">
  660. <input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_7" >
  661. <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="">
  662. <span class="md-ellipsis">
  663. 关于
  664. </span>
  665. <span class="md-nav__icon md-icon"></span>
  666. </label>
  667. <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
  668. <label class="md-nav__title" for="__nav_7">
  669. <span class="md-nav__icon md-icon"></span>
  670. 关于
  671. </label>
  672. <ul class="md-nav__list" data-md-scrollfix>
  673. <li class="md-nav__item">
  674. <a href="../../about/geren/" class="md-nav__link">
  675. <span class="md-ellipsis">
  676. 作者个人简介
  677. </span>
  678. </a>
  679. </li>
  680. <li class="md-nav__item">
  681. <a href="../../about/test/" class="md-nav__link">
  682. <span class="md-ellipsis">
  683. 功能测试
  684. </span>
  685. </a>
  686. </li>
  687. </ul>
  688. </nav>
  689. </li>
  690. </ul>
  691. </nav>
  692. </div>
  693. </div>
  694. </div>
  695. <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
  696. <div class="md-sidebar__scrollwrap">
  697. <div class="md-sidebar__inner">
  698. <nav class="md-nav md-nav--secondary" aria-label="目录">
  699. <label class="md-nav__title" for="__toc">
  700. <span class="md-nav__icon md-icon"></span>
  701. 目录
  702. </label>
  703. <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
  704. <li class="md-nav__item">
  705. <a href="#一基本操作" class="md-nav__link">
  706. 一、基本操作
  707. </a>
  708. <nav class="md-nav" aria-label="一、基本操作">
  709. <ul class="md-nav__list">
  710. <li class="md-nav__item">
  711. <a href="#1-新建-git-仓库" class="md-nav__link">
  712. 1. 新建 git 仓库
  713. </a>
  714. </li>
  715. <li class="md-nav__item">
  716. <a href="#2-克隆远程仓库" class="md-nav__link">
  717. 2. 克隆远程仓库
  718. </a>
  719. </li>
  720. <li class="md-nav__item">
  721. <a href="#3-提交代码" class="md-nav__link">
  722. 3. 提交代码
  723. </a>
  724. </li>
  725. <li class="md-nav__item">
  726. <a href="#4-查看仓库状态" class="md-nav__link">
  727. 4. 查看仓库状态
  728. </a>
  729. </li>
  730. <li class="md-nav__item">
  731. <a href="#5-查看提交历史" class="md-nav__link">
  732. 5. 查看提交历史
  733. </a>
  734. </li>
  735. <li class="md-nav__item">
  736. <a href="#6-新建分支" class="md-nav__link">
  737. 6. 新建分支
  738. </a>
  739. </li>
  740. <li class="md-nav__item">
  741. <a href="#7-合并分支" class="md-nav__link">
  742. 7. 合并分支
  743. </a>
  744. </li>
  745. <li class="md-nav__item">
  746. <a href="#8-删除分支" class="md-nav__link">
  747. 8. 删除分支
  748. </a>
  749. </li>
  750. <li class="md-nav__item">
  751. <a href="#9-合并冲突" class="md-nav__link">
  752. 9. 合并冲突
  753. </a>
  754. </li>
  755. <li class="md-nav__item">
  756. <a href="#10-远程仓库" class="md-nav__link">
  757. 10. 远程仓库
  758. </a>
  759. </li>
  760. </ul>
  761. </nav>
  762. </li>
  763. <li class="md-nav__item">
  764. <a href="#二常见技巧" class="md-nav__link">
  765. 二、常见技巧
  766. </a>
  767. <nav class="md-nav" aria-label="二、常见技巧">
  768. <ul class="md-nav__list">
  769. <li class="md-nav__item">
  770. <a href="#1-临时保存成果" class="md-nav__link">
  771. 1. 临时保存成果
  772. </a>
  773. </li>
  774. <li class="md-nav__item">
  775. <a href="#2-合并分支灵活选择-rebasemerge" class="md-nav__link">
  776. 2. 合并分支灵活选择 rebase/merge
  777. </a>
  778. </li>
  779. <li class="md-nav__item">
  780. <a href="#3-cherry-pick" class="md-nav__link">
  781. 3. cherry-pick
  782. </a>
  783. </li>
  784. <li class="md-nav__item">
  785. <a href="#4-修改上次提交" class="md-nav__link">
  786. 4. 修改上次提交
  787. </a>
  788. </li>
  789. <li class="md-nav__item">
  790. <a href="#5-取消文件修改" class="md-nav__link">
  791. 5. 取消文件修改
  792. </a>
  793. </li>
  794. <li class="md-nav__item">
  795. <a href="#6-弃用提交" class="md-nav__link">
  796. 6. 弃用提交
  797. </a>
  798. </li>
  799. <li class="md-nav__item">
  800. <a href="#7-补丁文件" class="md-nav__link">
  801. 7. 补丁文件
  802. </a>
  803. </li>
  804. </ul>
  805. </nav>
  806. </li>
  807. </ul>
  808. </nav>
  809. </div>
  810. </div>
  811. </div>
  812. <div class="md-content" data-md-component="content">
  813. <article class="md-content__inner md-typeset">
  814. <nav class="md-tags" >
  815. <a href="../../tag/#" class="md-tag">技术分享</a>
  816. </nav>
  817. <a href="https://github.com/Wcowin/Mkdocs-Wcowin/edit/main/docs/develop/git.md" title="编辑此页" class="md-content__button md-icon">
  818. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 20H6V4h7v5h5v3.1l2-2V8l-6-6H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h4v-2m10.2-7c.1 0 .3.1.4.2l1.3 1.3c.2.2.2.6 0 .8l-1 1-2.1-2.1 1-1c.1-.1.2-.2.4-.2m0 3.9L14.1 23H12v-2.1l6.1-6.1 2.1 2.1Z"/></svg>
  819. </a>
  820. <a href="https://github.com/Wcowin/Mkdocs-Wcowin/raw/main/docs/develop/git.md" title="查看本页的源代码" class="md-content__button md-icon">
  821. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 18c.56 0 1 .44 1 1s-.44 1-1 1-1-.44-1-1 .44-1 1-1m0-3c-2.73 0-5.06 1.66-6 4 .94 2.34 3.27 4 6 4s5.06-1.66 6-4c-.94-2.34-3.27-4-6-4m0 6.5a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5M9.27 20H6V4h7v5h5v4.07c.7.08 1.36.25 2 .49V8l-6-6H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4.5a8.15 8.15 0 0 1-1.23-2Z"/></svg>
  822. </a>
  823. <div class="admonition info">
  824. <p class="admonition-title">Info</p>
  825. <p>原文地址:<a href="https://www.iszy.cc/posts/git/#more" target="_blank">Git 实用技巧</a></p>
  826. </div>
  827. <h1 id="git-实用技巧">Git 实用技巧<a class="headerlink" href="#git-实用技巧" title="Permanent link"></a></h1>
  828. <h2 id="一基本操作">一、基本操作<a class="headerlink" href="#一基本操作" title="Permanent link"></a></h2>
  829. <h3 id="1-新建-git-仓库">1. 新建 git 仓库<a class="headerlink" href="#1-新建-git-仓库" title="Permanent link"></a></h3>
  830. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1"></a>git init
  831. </code></pre></div></td></tr></table></div>
  832. <p><img alt="" src="https://img.iszy.xyz/1669185106451.png" /> </p>
  833. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-1-1">1</a></span>
  834. <span class="normal"><a href="#__codelineno-1-2">2</a></span>
  835. <span class="normal"><a href="#__codelineno-1-3">3</a></span>
  836. <span class="normal"><a href="#__codelineno-1-4">4</a></span>
  837. <span class="normal"><a href="#__codelineno-1-5">5</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-1-1" name="__codelineno-1-1"></a>git init -b main
  838. <a id="__codelineno-1-2" name="__codelineno-1-2"></a>
  839. <a id="__codelineno-1-3" name="__codelineno-1-3"></a>git config --global init.defaultBranch main
  840. <a id="__codelineno-1-4" name="__codelineno-1-4"></a>
  841. <a id="__codelineno-1-5" name="__codelineno-1-5"></a>git branch -m main
  842. </code></pre></div></td></tr></table></div>
  843. <h3 id="2-克隆远程仓库">2. 克隆远程仓库<a class="headerlink" href="#2-克隆远程仓库" title="Permanent link"></a></h3>
  844. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-2-1">1</a></span>
  845. <span class="normal"><a href="#__codelineno-2-2">2</a></span>
  846. <span class="normal"><a href="#__codelineno-2-3">3</a></span>
  847. <span class="normal"><a href="#__codelineno-2-4">4</a></span>
  848. <span class="normal"><a href="#__codelineno-2-5">5</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-2-1" name="__codelineno-2-1"></a>git clone http://git.example.com/someone/test.git
  849. <a id="__codelineno-2-2" name="__codelineno-2-2"></a>
  850. <a id="__codelineno-2-3" name="__codelineno-2-3"></a>git clone http://git.example.com/someone/test.git test
  851. <a id="__codelineno-2-4" name="__codelineno-2-4"></a>
  852. <a id="__codelineno-2-5" name="__codelineno-2-5"></a>git clone http://git.example.com/someone/test.git --depth=1 -b main
  853. </code></pre></div></td></tr></table></div>
  854. <h3 id="3-提交代码">3. 提交代码<a class="headerlink" href="#3-提交代码" title="Permanent link"></a></h3>
  855. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-3-1"> 1</a></span>
  856. <span class="normal"><a href="#__codelineno-3-2"> 2</a></span>
  857. <span class="normal"><a href="#__codelineno-3-3"> 3</a></span>
  858. <span class="normal"><a href="#__codelineno-3-4"> 4</a></span>
  859. <span class="normal"><a href="#__codelineno-3-5"> 5</a></span>
  860. <span class="normal"><a href="#__codelineno-3-6"> 6</a></span>
  861. <span class="normal"><a href="#__codelineno-3-7"> 7</a></span>
  862. <span class="normal"><a href="#__codelineno-3-8"> 8</a></span>
  863. <span class="normal"><a href="#__codelineno-3-9"> 9</a></span>
  864. <span class="normal"><a href="#__codelineno-3-10">10</a></span>
  865. <span class="normal"><a href="#__codelineno-3-11">11</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-3-1" name="__codelineno-3-1"></a>git add -a
  866. <a id="__codelineno-3-2" name="__codelineno-3-2"></a>
  867. <a id="__codelineno-3-3" name="__codelineno-3-3"></a>git add -u
  868. <a id="__codelineno-3-4" name="__codelineno-3-4"></a>
  869. <a id="__codelineno-3-5" name="__codelineno-3-5"></a>git add .
  870. <a id="__codelineno-3-6" name="__codelineno-3-6"></a>
  871. <a id="__codelineno-3-7" name="__codelineno-3-7"></a>git commit
  872. <a id="__codelineno-3-8" name="__codelineno-3-8"></a>
  873. <a id="__codelineno-3-9" name="__codelineno-3-9"></a>git commit -m &quot;first commit&quot;
  874. <a id="__codelineno-3-10" name="__codelineno-3-10"></a>
  875. <a id="__codelineno-3-11" name="__codelineno-3-11"></a>git commit -am &quot;first commit&quot;
  876. </code></pre></div></td></tr></table></div>
  877. <h3 id="4-查看仓库状态">4. 查看仓库状态<a class="headerlink" href="#4-查看仓库状态" title="Permanent link"></a></h3>
  878. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-4-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-4-1" name="__codelineno-4-1"></a>git status
  879. </code></pre></div></td></tr></table></div>
  880. <p><img alt="" src="https://img.iszy.xyz/1669185760241.png" /> </p>
  881. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-5-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-5-1" name="__codelineno-5-1"></a>git status -s
  882. </code></pre></div></td></tr></table></div>
  883. <p><img alt="" src="https://img.iszy.xyz/1669185789446.png" /> </p>
  884. <h3 id="5-查看提交历史">5. 查看提交历史<a class="headerlink" href="#5-查看提交历史" title="Permanent link"></a></h3>
  885. <p><a href="https://git-scm.com/docs/git-log" target="_blank">https://git-scm.com/docs/git-log</a></p>
  886. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-6-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-6-1" name="__codelineno-6-1"></a>git log
  887. </code></pre></div></td></tr></table></div>
  888. <p><img alt="" src="https://img.iszy.xyz/1669185798311.png" /></p>
  889. <h3 id="6-新建分支">6. 新建分支<a class="headerlink" href="#6-新建分支" title="Permanent link"></a></h3>
  890. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-7-1">1</a></span>
  891. <span class="normal"><a href="#__codelineno-7-2">2</a></span>
  892. <span class="normal"><a href="#__codelineno-7-3">3</a></span>
  893. <span class="normal"><a href="#__codelineno-7-4">4</a></span>
  894. <span class="normal"><a href="#__codelineno-7-5">5</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-7-1" name="__codelineno-7-1"></a>git branch test
  895. <a id="__codelineno-7-2" name="__codelineno-7-2"></a>
  896. <a id="__codelineno-7-3" name="__codelineno-7-3"></a>git checkout test
  897. <a id="__codelineno-7-4" name="__codelineno-7-4"></a>
  898. <a id="__codelineno-7-5" name="__codelineno-7-5"></a>git checkout -b test
  899. </code></pre></div></td></tr></table></div>
  900. <p><img alt="Alt text" src="https://img.iszy.xyz/1669185814401.png" /></p>
  901. <h3 id="7-合并分支">7. 合并分支<a class="headerlink" href="#7-合并分支" title="Permanent link"></a></h3>
  902. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-8-1">1</a></span>
  903. <span class="normal"><a href="#__codelineno-8-2">2</a></span>
  904. <span class="normal"><a href="#__codelineno-8-3">3</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-8-1" name="__codelineno-8-1"></a>git checkout main
  905. <a id="__codelineno-8-2" name="__codelineno-8-2"></a>
  906. <a id="__codelineno-8-3" name="__codelineno-8-3"></a>git merge test
  907. </code></pre></div></td></tr></table></div>
  908. <p><img alt="Alt text" src="https://img.iszy.xyz/1669185829746.png" /></p>
  909. <h3 id="8-删除分支">8. 删除分支<a class="headerlink" href="#8-删除分支" title="Permanent link"></a></h3>
  910. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-9-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-9-1" name="__codelineno-9-1"></a>git branch -d test-not-need
  911. </code></pre></div></td></tr></table></div>
  912. <p><img alt="Alt text" src="https://img.iszy.xyz/1669185836945.png" /> </p>
  913. <h3 id="9-合并冲突">9. 合并冲突<a class="headerlink" href="#9-合并冲突" title="Permanent link"></a></h3>
  914. <p><img alt="Alt text" src="https://img.iszy.xyz/1669185846981.png" /> </p>
  915. <p>当两个分支都对同一行进行了修改,git 便会产生冲突,并标记为未合并</p>
  916. <p><img alt="Alt text" src="https://img.iszy.xyz/1669185854676.png" /> </p>
  917. <p>此时将每个文件进行修改,确认最后的内容,使用 git add 方法标记为冲突已解决
  918. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-10-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-10-1" name="__codelineno-10-1"></a>git add .\A.txt
  919. </code></pre></div></td></tr></table></div>
  920. 在所有文件的冲突均已解决后,使用 commit 提交此次修改。</p>
  921. <p><img alt="Alt text" src="https://img.iszy.xyz/1669185864622.png" /></p>
  922. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-11-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-11-1" name="__codelineno-11-1"></a>git merge --abort
  923. </code></pre></div></td></tr></table></div>
  924. <h3 id="10-远程仓库">10. 远程仓库<a class="headerlink" href="#10-远程仓库" title="Permanent link"></a></h3>
  925. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-12-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-12-1" name="__codelineno-12-1"></a>git remote
  926. </code></pre></div></td></tr></table></div>
  927. <p>默认应该为空</p>
  928. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-13-1"> 1</a></span>
  929. <span class="normal"><a href="#__codelineno-13-2"> 2</a></span>
  930. <span class="normal"><a href="#__codelineno-13-3"> 3</a></span>
  931. <span class="normal"><a href="#__codelineno-13-4"> 4</a></span>
  932. <span class="normal"><a href="#__codelineno-13-5"> 5</a></span>
  933. <span class="normal"><a href="#__codelineno-13-6"> 6</a></span>
  934. <span class="normal"><a href="#__codelineno-13-7"> 7</a></span>
  935. <span class="normal"><a href="#__codelineno-13-8"> 8</a></span>
  936. <span class="normal"><a href="#__codelineno-13-9"> 9</a></span>
  937. <span class="normal"><a href="#__codelineno-13-10">10</a></span>
  938. <span class="normal"><a href="#__codelineno-13-11">11</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-13-1" name="__codelineno-13-1"></a>git remote add origin http://git.example.com/someone/test.git
  939. <a id="__codelineno-13-2" name="__codelineno-13-2"></a>
  940. <a id="__codelineno-13-3" name="__codelineno-13-3"></a>git push origin main
  941. <a id="__codelineno-13-4" name="__codelineno-13-4"></a>
  942. <a id="__codelineno-13-5" name="__codelineno-13-5"></a>git fetch --all
  943. <a id="__codelineno-13-6" name="__codelineno-13-6"></a>
  944. <a id="__codelineno-13-7" name="__codelineno-13-7"></a>git fetch origin
  945. <a id="__codelineno-13-8" name="__codelineno-13-8"></a>
  946. <a id="__codelineno-13-9" name="__codelineno-13-9"></a>git branch --set-upstream-to=origin/main main
  947. <a id="__codelineno-13-10" name="__codelineno-13-10"></a>
  948. <a id="__codelineno-13-11" name="__codelineno-13-11"></a>git branch -u origin/main main
  949. </code></pre></div></td></tr></table></div>
  950. <p><img alt="Alt text" src="https://img.iszy.xyz/1669186022128.png" /></p>
  951. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-14-1">1</a></span>
  952. <span class="normal"><a href="#__codelineno-14-2">2</a></span>
  953. <span class="normal"><a href="#__codelineno-14-3">3</a></span>
  954. <span class="normal"><a href="#__codelineno-14-4">4</a></span>
  955. <span class="normal"><a href="#__codelineno-14-5">5</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-14-1" name="__codelineno-14-1"></a>git push -u origin main
  956. <a id="__codelineno-14-2" name="__codelineno-14-2"></a>
  957. <a id="__codelineno-14-3" name="__codelineno-14-3"></a>git pull
  958. <a id="__codelineno-14-4" name="__codelineno-14-4"></a>
  959. <a id="__codelineno-14-5" name="__codelineno-14-5"></a>git pull origin main
  960. </code></pre></div></td></tr></table></div>
  961. <h2 id="二常见技巧">二、常见技巧<a class="headerlink" href="#二常见技巧" title="Permanent link"></a></h2>
  962. <h3 id="1-临时保存成果">1. 临时保存成果<a class="headerlink" href="#1-临时保存成果" title="Permanent link"></a></h3>
  963. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-15-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-15-1" name="__codelineno-15-1"></a>git stash
  964. </code></pre></div></td></tr></table></div>
  965. <p><img alt="Alt text" src="https://img.iszy.xyz/1669186037294.png" /> </p>
  966. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-16-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-16-1" name="__codelineno-16-1"></a>git stash pop
  967. </code></pre></div></td></tr></table></div>
  968. <p><img alt="Alt text" src="https://img.iszy.xyz/1669186045214.png" /></p>
  969. <h3 id="2-合并分支灵活选择-rebasemerge">2. 合并分支灵活选择 rebase/merge<a class="headerlink" href="#2-合并分支灵活选择-rebasemerge" title="Permanent link"></a></h3>
  970. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-17-1">1</a></span>
  971. <span class="normal"><a href="#__codelineno-17-2">2</a></span>
  972. <span class="normal"><a href="#__codelineno-17-3">3</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-17-1" name="__codelineno-17-1"></a>git merge test
  973. <a id="__codelineno-17-2" name="__codelineno-17-2"></a>
  974. <a id="__codelineno-17-3" name="__codelineno-17-3"></a>git rebase test
  975. </code></pre></div></td></tr></table></div>
  976. <p><img alt="Alt text" src="https://img.iszy.xyz/1669186058175.png" /></p>
  977. <h3 id="3-cherry-pick">3. cherry-pick<a class="headerlink" href="#3-cherry-pick" title="Permanent link"></a></h3>
  978. <p>适合 hotfix</p>
  979. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-18-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-18-1" name="__codelineno-18-1"></a>git cherry-pick 12d654f1d701cbf7cd9abb98ce84eeef460a24a7
  980. </code></pre></div></td></tr></table></div>
  981. <p><img alt="Alt text" src="https://img.iszy.xyz/1669186102974.png" />
  982. <img alt="Alt text" src="https://img.iszy.xyz/1669186072778.png" /></p>
  983. <h3 id="4-修改上次提交">4. 修改上次提交<a class="headerlink" href="#4-修改上次提交" title="Permanent link"></a></h3>
  984. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-19-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-19-1" name="__codelineno-19-1"></a>git commit --amend
  985. </code></pre></div></td></tr></table></div>
  986. <p>会同时提交暂存的文件</p>
  987. <h3 id="5-取消文件修改">5. 取消文件修改<a class="headerlink" href="#5-取消文件修改" title="Permanent link"></a></h3>
  988. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-20-1">1</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-20-1" name="__codelineno-20-1"></a>git checkout .\C.txt
  989. </code></pre></div></td></tr></table></div>
  990. <p><img alt="Alt text" src="https://img.iszy.xyz/1669186116701.png" /></p>
  991. <h3 id="6-弃用提交">6. 弃用提交<a class="headerlink" href="#6-弃用提交" title="Permanent link"></a></h3>
  992. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-21-1">1</a></span>
  993. <span class="normal"><a href="#__codelineno-21-2">2</a></span>
  994. <span class="normal"><a href="#__codelineno-21-3">3</a></span>
  995. <span class="normal"><a href="#__codelineno-21-4">4</a></span>
  996. <span class="normal"><a href="#__codelineno-21-5">5</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-21-1" name="__codelineno-21-1"></a>保留文件
  997. <a id="__codelineno-21-2" name="__codelineno-21-2"></a>git reset --soft 12d654f1d701cbf7cd9abb98ce84eeef460a24a7
  998. <a id="__codelineno-21-3" name="__codelineno-21-3"></a>
  999. <a id="__codelineno-21-4" name="__codelineno-21-4"></a>丢弃修改
  1000. <a id="__codelineno-21-5" name="__codelineno-21-5"></a>git reset --hard 12d654f1d701cbf7cd9abb98ce84eeef460a24a7
  1001. </code></pre></div></td></tr></table></div>
  1002. <h3 id="7-补丁文件">7. 补丁文件<a class="headerlink" href="#7-补丁文件" title="Permanent link"></a></h3>
  1003. <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-22-1">1</a></span>
  1004. <span class="normal"><a href="#__codelineno-22-2">2</a></span>
  1005. <span class="normal"><a href="#__codelineno-22-3">3</a></span></pre></div></td><td class="code"><div><pre><span></span><code><a id="__codelineno-22-1" name="__codelineno-22-1"></a>git
  1006. <a id="__codelineno-22-2" name="__codelineno-22-2"></a>git diff [file] &gt; a.patch
  1007. <a id="__codelineno-22-3" name="__codelineno-22-3"></a>git apply a.patch
  1008. </code></pre></div></td></tr></table></div>
  1009. <!--
  1010. Copyright (c) 2016-2023 Martin Donath <martin.donath@squidfunk.com>
  1011. Permission is hereby granted, free of charge, to any person obtaining a copy
  1012. of this software and associated documentation files (the "Software"), to
  1013. deal in the Software without restriction, including without limitation the
  1014. rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  1015. sell copies of the Software, and to permit persons to whom the Software is
  1016. furnished to do so, subject to the following conditions:
  1017. The above copyright notice and this permission notice shall be included in
  1018. all copies or substantial portions of the Software.
  1019. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1020. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1021. FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
  1022. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  1023. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  1024. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  1025. IN THE SOFTWARE.
  1026. -->
  1027. <!-- Determine feedback configuration -->
  1028. <!-- Determine whether to show feedback -->
  1029. <!-- Was this page helpful? -->
  1030. <form class="md-feedback" name="feedback" hidden>
  1031. <fieldset>
  1032. <legend class="md-feedback__title">
  1033. 此页面有帮助吗?
  1034. </legend>
  1035. <div class="md-feedback__inner">
  1036. <!-- Feedback ratings -->
  1037. <div class="md-feedback__list">
  1038. <button
  1039. class="md-feedback__icon md-icon"
  1040. type="submit"
  1041. title="This page was helpful"
  1042. data-md-value="1"
  1043. >
  1044. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 9v12H1V9h4m4 12a2 2 0 0 1-2-2V9c0-.55.22-1.05.59-1.41L14.17 1l1.06 1.06c.27.27.44.64.44 1.05l-.03.32L14.69 8H21a2 2 0 0 1 2 2v2c0 .26-.05.5-.14.73l-3.02 7.05C19.54 20.5 18.83 21 18 21H9m0-2h9.03L21 12v-2h-8.79l1.13-5.32L9 9.03V19Z"/></svg>
  1045. </button>
  1046. <button
  1047. class="md-feedback__icon md-icon"
  1048. type="submit"
  1049. title="This page could be improved"
  1050. data-md-value="0"
  1051. >
  1052. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 15V3h4v12h-4M15 3a2 2 0 0 1 2 2v10c0 .55-.22 1.05-.59 1.41L9.83 23l-1.06-1.06c-.27-.27-.44-.64-.44-1.06l.03-.31.95-4.57H3a2 2 0 0 1-2-2v-2c0-.26.05-.5.14-.73l3.02-7.05C4.46 3.5 5.17 3 6 3h9m0 2H5.97L3 12v2h8.78l-1.13 5.32L15 14.97V5Z"/></svg>
  1053. </button>
  1054. </div>
  1055. <!-- Feedback rating notes (shown after submission) -->
  1056. <div class="md-feedback__note">
  1057. <div data-md-value="1" hidden>
  1058. <!-- Determine title -->
  1059. <!-- Replace {url} and {title} placeholders in note -->
  1060. 谢谢你的反馈!
  1061. </div>
  1062. <div data-md-value="0" hidden>
  1063. <!-- Determine title -->
  1064. <!-- Replace {url} and {title} placeholders in note -->
  1065. Thanks for your feedback! Help us improve this page by using our <a href="https://marketingplatform.google.com/about/analytics/" target="_blank" rel="noopener">feedback form</a>.
  1066. </div>
  1067. </div>
  1068. </div>
  1069. </fieldset>
  1070. </form>
  1071. <!--
  1072. Copyright (c) 2016-2023 Martin Donath <martin.donath@squidfunk.com>
  1073. Permission is hereby granted, free of charge, to any person obtaining a copy
  1074. of this software and associated documentation files (the "Software"), to
  1075. deal in the Software without restriction, including without limitation the
  1076. rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  1077. sell copies of the Software, and to permit persons to whom the Software is
  1078. furnished to do so, subject to the following conditions:
  1079. The above copyright notice and this permission notice shall be included in
  1080. all copies or substantial portions of the Software.
  1081. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1082. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1083. FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
  1084. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  1085. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  1086. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  1087. IN THE SOFTWARE.
  1088. -->
  1089. <!-- Comment system -->
  1090. </article>
  1091. </div>
  1092. <script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var tab,labels=set.querySelector(".tabbed-labels");for(tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script>
  1093. </div>
  1094. <button type="button" class="md-top md-icon" data-md-component="top" hidden>
  1095. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12Z"/></svg>
  1096. 回到页面顶部
  1097. </button>
  1098. </main>
  1099. <!--
  1100. Copyright (c) 2016-2023 Martin Donath <martin.donath@squidfunk.com>
  1101. Permission is hereby granted, free of charge, to any person obtaining a copy
  1102. of this software and associated documentation files (the "Software"), to
  1103. deal in the Software without restriction, including without limitation the
  1104. rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  1105. sell copies of the Software, and to permit persons to whom the Software is
  1106. furnished to do so, subject to the following conditions:
  1107. The above copyright notice and this permission notice shall be included in
  1108. all copies or substantial portions of the Software.
  1109. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  1110. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  1111. FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
  1112. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  1113. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  1114. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  1115. IN THE SOFTWARE.
  1116. -->
  1117. <!-- Footer -->
  1118. <footer class="md-footer">
  1119. <!-- Link to previous and/or next page -->
  1120. <nav
  1121. class="md-footer__inner md-grid"
  1122. aria-label="页脚"
  1123. >
  1124. <!-- Link to previous page -->
  1125. <a
  1126. href="../Markdown/MWeb/"
  1127. class="md-footer__link md-footer__link--prev"
  1128. aria-label="上一页: MWeb Pro"
  1129. >
  1130. <div class="md-footer__button md-icon">
  1131. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
  1132. </div>
  1133. <div class="md-footer__title">
  1134. <span class="md-footer__direction">
  1135. 上一页
  1136. </span>
  1137. <div class="md-ellipsis">
  1138. MWeb Pro
  1139. </div>
  1140. </div>
  1141. </a>
  1142. <!-- Link to next page -->
  1143. <a
  1144. href="../lighthouse/"
  1145. class="md-footer__link md-footer__link--next"
  1146. aria-label="下一页: 利用Lighthouse测试网站性能"
  1147. >
  1148. <div class="md-footer__title">
  1149. <span class="md-footer__direction">
  1150. 下一页
  1151. </span>
  1152. <div class="md-ellipsis">
  1153. 利用Lighthouse测试网站性能
  1154. </div>
  1155. </div>
  1156. <div class="md-footer__button md-icon">
  1157. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"/></svg>
  1158. </div>
  1159. </a>
  1160. </nav>
  1161. <!-- Further information -->
  1162. <div class="md-footer-meta md-typeset">
  1163. <div class="md-footer-meta__inner md-grid">
  1164. <div class="md-copyright">
  1165. <div class="md-copyright__highlight">
  1166. Copyright &copy; 2022~2023 Wcowin/All Rights Reserved.
  1167. </div>
  1168. Made with
  1169. <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
  1170. Material for MkDocs
  1171. </a>
  1172. </div>
  1173. <!-- Social links -->
  1174. <center>
  1175. <footer>
  1176. <a href="https://icp.gov.moe/?keyword=20230640" target="_blank">萌ICP备20230640号</a>
  1177. </footer>
  1178. </center>
  1179. <div class="md-social">
  1180. <a href="https://twitter.com/wcowin_" target="_blank" rel="noopener" title="twitter.com" class="md-social__link">
  1181. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9L389.2 48zm-24.8 373.8h39.1L151.1 88h-42l255.3 333.8z"/></svg>
  1182. </a>
  1183. <a href="https://github.com/Wcowin" target="_blank" rel="noopener" title="github.com" class="md-social__link">
  1184. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
  1185. </a>
  1186. <a href="mailto:<wangkewen821@gmail.com>" target="_blank" rel="noopener" title="" class="md-social__link">
  1187. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M64 112c-8.8 0-16 7.2-16 16v22.1l172.5 141.6c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16h384c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128c0-35.3 28.7-64 64-64h384c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"/></svg>
  1188. </a>
  1189. <a href="https://space.bilibili.com/1407028951?spm_id_from=333.1007.0.0" target="_blank" rel="noopener" title="space.bilibili.com" class="md-social__link">
  1190. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d="M488.6 104.1c16.7 18.1 24.4 39.7 23.3 65.7v202.4c-.4 26.4-9.2 48.1-26.5 65.1-17.2 17-39.1 25.9-65.5 26.7H92.02c-26.45-.8-48.21-9.8-65.28-27.2C9.682 419.4.767 396.5 0 368.2V169.8c.767-26 9.682-47.6 26.74-65.7C43.81 87.75 65.57 78.77 92.02 78h29.38L96.05 52.19c-5.75-5.73-8.63-13-8.63-21.79 0-8.8 2.88-16.06 8.63-21.797C101.8 2.868 109.1 0 117.9 0s16.1 2.868 21.9 8.603L213.1 78h88l74.5-69.397C381.7 2.868 389.2 0 398 0c8.8 0 16.1 2.868 21.9 8.603 5.7 5.737 8.6 12.997 8.6 21.797 0 8.79-2.9 16.06-8.6 21.79L394.6 78h29.3c26.4.77 48 9.75 64.7 26.1zm-38.8 69.7c-.4-9.6-3.7-17.4-10.7-23.5-5.2-6.1-14-9.4-22.7-9.8H96.05c-9.59.4-17.45 3.7-23.58 9.8-6.14 6.1-9.4 13.9-9.78 23.5v194.4c0 9.2 3.26 17 9.78 23.5s14.38 9.8 23.58 9.8H416.4c9.2 0 17-3.3 23.3-9.8 6.3-6.5 9.7-14.3 10.1-23.5V173.8zm-264.3 42.7c6.3 6.3 9.7 14.1 10.1 23.2V273c-.4 9.2-3.7 16.9-9.8 23.2-6.2 6.3-14 9.5-23.6 9.5-9.6 0-17.5-3.2-23.6-9.5-6.1-6.3-9.4-14-9.8-23.2v-33.3c.4-9.1 3.8-16.9 10.1-23.2 6.3-6.3 13.2-9.6 23.3-10 9.2.4 17 3.7 23.3 10zm191.5 0c6.3 6.3 9.7 14.1 10.1 23.2V273c-.4 9.2-3.7 16.9-9.8 23.2-6.1 6.3-14 9.5-23.6 9.5-9.6 0-17.4-3.2-23.6-9.5-7-6.3-9.4-14-9.7-23.2v-33.3c.3-9.1 3.7-16.9 10-23.2 6.3-6.3 14.1-9.6 23.3-10 9.2.4 17 3.7 23.3 10z"/></svg>
  1191. </a>
  1192. </div>
  1193. </div>
  1194. </div>
  1195. </footer>
  1196. </div>
  1197. <div class="md-dialog" data-md-component="dialog">
  1198. <div class="md-dialog__inner md-typeset"></div>
  1199. </div>
  1200. <script id="__config" type="application/json">{"base": "../..", "features": ["announce.dismiss", "navigation.tracking", "navigation.tabs", "navigation.sections", "navigation.top", "navigation.footer", "search.suggest", "search.highlight", "search.share", "navigation.expand", "navigation.indexes", "content.tabs.link", "content.tooltips", "content.code.copy", "content.action.edit", "content.action.view", "content.code.annotate"], "search": "../../assets/javascripts/workers/search.a264c092.min.js", "translations": {"clipboard.copied": "\u5df2\u590d\u5236", "clipboard.copy": "\u590d\u5236", "search.result.more.one": "\u5728\u8be5\u9875\u4e0a\u8fd8\u6709 1 \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.more.other": "\u5728\u8be5\u9875\u4e0a\u8fd8\u6709 # \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.none": "\u6ca1\u6709\u627e\u5230\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.one": "\u627e\u5230 1 \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.other": "# \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.placeholder": "\u952e\u5165\u4ee5\u5f00\u59cb\u641c\u7d22", "search.result.term.missing": "\u7f3a\u5c11", "select.version": "\u9009\u62e9\u5f53\u524d\u7248\u672c"}}</script>
  1201. <script src="../../assets/javascripts/bundle.726fbb30.min.js"></script>
  1202. <script src="../../javascripts/extra.js"></script>
  1203. <script src="../../javascripts/mathjax.js"></script>
  1204. <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
  1205. <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
  1206. <script src="../../ckplayer/js/ckplayer.js"></script>
  1207. <script src="https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js"></script>
  1208. <script src="https://cdn.jsdelivr.net/npm/mermaid@10.0.2/dist/add-html-label-6e56ed67.min.js"></script>
  1209. <script src="../../assets/javascripts/custom.9458f965.min.js"></script>
  1210. </body>
  1211. </html>