[{"data":1,"prerenderedAt":1775},["ShallowReactive",2],{"post-2026-05-09-gitcommands":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"tags":11,"body":14,"_type":1769,"_id":1770,"_source":1771,"_file":1772,"_stem":1773,"_extension":1774},"\u002Fblog\u002F2026-05-09-gitcommands","blog",false,"","Git 指令集","Git 实用指令集：本地文件永久忽略、团队远程推送流程、Connection was reset 问题排查与解决。","2026-05-09",[12,13],"Git","版本控制",{"type":15,"children":16,"toc":1764},"root",[17,26,32,38,64,73,79,108,157,169,196,202,229,277,285,303,309,318,394,406,432,438,443,512,517,617,625,666,670,676,681,702,781,786,794,818,833,856,883,912,950,963,991,1000,1072,1080,1110,1113,1119,1124,1133,1139,1147,1160,1255,1263,1284,1292,1304,1376,1384,1440,1448,1502,1509,1514,1522,1528,1561,1574,1599,1610,1630,1642,1687,1720,1731,1758],{"type":18,"tag":19,"props":20,"children":22},"element","h3",{"id":21},"指令1本地修改文件不提交到远程",[23],{"type":24,"value":25},"text","指令1：本地修改文件不提交到远程",{"type":18,"tag":27,"props":28,"children":30},"h4",{"id":29},"场景说明",[31],{"type":24,"value":29},{"type":18,"tag":33,"props":34,"children":35},"p",{},[36],{"type":24,"value":37},"作为后端开发人员，本地开发时会修改前端文件（如调试、适配），但不希望将这些本地修改提交到远程仓库，避免干扰前端同事的代码提交。",{"type":18,"tag":39,"props":40,"children":41},"ul",{},[42,54],{"type":18,"tag":43,"props":44,"children":45},"li",{},[46,52],{"type":18,"tag":47,"props":48,"children":49},"strong",{},[50],{"type":24,"value":51},"核心方案",{"type":24,"value":53},"：永久忽略本地前端文件（推荐）",{"type":18,"tag":43,"props":55,"children":56},{},[57,62],{"type":18,"tag":47,"props":58,"children":59},{},[60],{"type":24,"value":61},"适用场景",{"type":24,"value":63},"：本地修改的前端文件无需同步到远程，且后续持续保持该规则。",{"type":18,"tag":65,"props":66,"children":67},"blockquote",{},[68],{"type":18,"tag":33,"props":69,"children":70},{},[71],{"type":24,"value":72},"操作命令（在项目根目录终端执行）",{"type":18,"tag":27,"props":74,"children":76},{"id":75},"场景-1忽略整个前端文件夹",[77],{"type":24,"value":78},"场景 1：忽略整个前端文件夹",{"type":18,"tag":33,"props":80,"children":81},{},[82,84,91,93,99,100,106],{"type":24,"value":83},"假设前端文件夹名为",{"type":18,"tag":85,"props":86,"children":88},"code",{"className":87},[],[89],{"type":24,"value":90},"frontend",{"type":24,"value":92},"\u002F",{"type":18,"tag":85,"props":94,"children":96},{"className":95},[],[97],{"type":24,"value":98},"web",{"type":24,"value":92},{"type":18,"tag":85,"props":101,"children":103},{"className":102},[],[104],{"type":24,"value":105},"client",{"type":24,"value":107},"，执行：",{"type":18,"tag":109,"props":110,"children":114},"pre",{"className":111,"code":112,"language":113,"meta":7,"style":7},"language-bash shiki shiki-themes github-dark","# 替换为实际前端文件夹名\ngit update-index --skip-worktree 前端文件夹名\u002F\n","bash",[115],{"type":18,"tag":85,"props":116,"children":117},{"__ignoreMap":7},[118,130],{"type":18,"tag":119,"props":120,"children":123},"span",{"class":121,"line":122},"line",1,[124],{"type":18,"tag":119,"props":125,"children":127},{"style":126},"--shiki-default:#6A737D",[128],{"type":24,"value":129},"# 替换为实际前端文件夹名\n",{"type":18,"tag":119,"props":131,"children":133},{"class":121,"line":132},2,[134,140,146,152],{"type":18,"tag":119,"props":135,"children":137},{"style":136},"--shiki-default:#B392F0",[138],{"type":24,"value":139},"git",{"type":18,"tag":119,"props":141,"children":143},{"style":142},"--shiki-default:#9ECBFF",[144],{"type":24,"value":145}," update-index",{"type":18,"tag":119,"props":147,"children":149},{"style":148},"--shiki-default:#79B8FF",[150],{"type":24,"value":151}," --skip-worktree",{"type":18,"tag":119,"props":153,"children":154},{"style":142},[155],{"type":24,"value":156}," 前端文件夹名\u002F\n",{"type":18,"tag":33,"props":158,"children":159},{},[160,162,167],{"type":24,"value":161},"示例（前端文件夹为",{"type":18,"tag":85,"props":163,"children":165},{"className":164},[],[166],{"type":24,"value":90},{"type":24,"value":168},"）：",{"type":18,"tag":109,"props":170,"children":172},{"className":111,"code":171,"language":113,"meta":7,"style":7},"git update-index --skip-worktree frontend\u002F\n",[173],{"type":18,"tag":85,"props":174,"children":175},{"__ignoreMap":7},[176],{"type":18,"tag":119,"props":177,"children":178},{"class":121,"line":122},[179,183,187,191],{"type":18,"tag":119,"props":180,"children":181},{"style":136},[182],{"type":24,"value":139},{"type":18,"tag":119,"props":184,"children":185},{"style":142},[186],{"type":24,"value":145},{"type":18,"tag":119,"props":188,"children":189},{"style":148},[190],{"type":24,"value":151},{"type":18,"tag":119,"props":192,"children":193},{"style":142},[194],{"type":24,"value":195}," frontend\u002F\n",{"type":18,"tag":27,"props":197,"children":199},{"id":198},"场景-2忽略特定类型前端文件",[200],{"type":24,"value":201},"场景 2：忽略特定类型前端文件",{"type":18,"tag":33,"props":203,"children":204},{},[205,207,213,214,220,221,227],{"type":24,"value":206},"若仅需忽略",{"type":18,"tag":85,"props":208,"children":210},{"className":209},[],[211],{"type":24,"value":212},".html",{"type":24,"value":92},{"type":18,"tag":85,"props":215,"children":217},{"className":216},[],[218],{"type":24,"value":219},".js",{"type":24,"value":92},{"type":18,"tag":85,"props":222,"children":224},{"className":223},[],[225],{"type":24,"value":226},".css",{"type":24,"value":228},"等文件，执行：",{"type":18,"tag":109,"props":230,"children":232},{"className":111,"code":231,"language":113,"meta":7,"style":7},"git update-index --skip-worktree *.html *.js *.css\n",[233],{"type":18,"tag":85,"props":234,"children":235},{"__ignoreMap":7},[236],{"type":18,"tag":119,"props":237,"children":238},{"class":121,"line":122},[239,243,247,251,256,260,264,268,272],{"type":18,"tag":119,"props":240,"children":241},{"style":136},[242],{"type":24,"value":139},{"type":18,"tag":119,"props":244,"children":245},{"style":142},[246],{"type":24,"value":145},{"type":18,"tag":119,"props":248,"children":249},{"style":148},[250],{"type":24,"value":151},{"type":18,"tag":119,"props":252,"children":253},{"style":148},[254],{"type":24,"value":255}," *",{"type":18,"tag":119,"props":257,"children":258},{"style":142},[259],{"type":24,"value":212},{"type":18,"tag":119,"props":261,"children":262},{"style":148},[263],{"type":24,"value":255},{"type":18,"tag":119,"props":265,"children":266},{"style":142},[267],{"type":24,"value":219},{"type":18,"tag":119,"props":269,"children":270},{"style":148},[271],{"type":24,"value":255},{"type":18,"tag":119,"props":273,"children":274},{"style":142},[275],{"type":24,"value":276},".css\n",{"type":18,"tag":33,"props":278,"children":279},{},[280],{"type":18,"tag":47,"props":281,"children":282},{},[283],{"type":24,"value":284},"核心作用",{"type":18,"tag":39,"props":286,"children":287},{},[288,293,298],{"type":18,"tag":43,"props":289,"children":290},{},[291],{"type":24,"value":292},"本地可随意修改前端文件，Git 不会记录这些修改；",{"type":18,"tag":43,"props":294,"children":295},{},[296],{"type":24,"value":297},"不影响远程仓库的前端代码，同事提交不受干扰；",{"type":18,"tag":43,"props":299,"children":300},{},[301],{"type":24,"value":302},"永久生效，直到手动取消忽略规则。",{"type":18,"tag":27,"props":304,"children":306},{"id":305},"场景-3临时撤销修改",[307],{"type":24,"value":308},"场景 3：临时撤销修改",{"type":18,"tag":33,"props":310,"children":311},{},[312,316],{"type":18,"tag":47,"props":313,"children":314},{},[315],{"type":24,"value":61},{"type":24,"value":317},"：临时需要将本地前端文件恢复到远程版本（如提交前清理）。操作命令：",{"type":18,"tag":109,"props":319,"children":321},{"className":111,"code":320,"language":113,"meta":7,"style":7},"# 撤销指定前端文件夹修改\ngit checkout -- 前端文件夹名\u002F\n\n# 撤销指定前端文件修改\ngit checkout -- 前端文件路径\n",[322],{"type":18,"tag":85,"props":323,"children":324},{"__ignoreMap":7},[325,333,354,364,373],{"type":18,"tag":119,"props":326,"children":327},{"class":121,"line":122},[328],{"type":18,"tag":119,"props":329,"children":330},{"style":126},[331],{"type":24,"value":332},"# 撤销指定前端文件夹修改\n",{"type":18,"tag":119,"props":334,"children":335},{"class":121,"line":132},[336,340,345,350],{"type":18,"tag":119,"props":337,"children":338},{"style":136},[339],{"type":24,"value":139},{"type":18,"tag":119,"props":341,"children":342},{"style":142},[343],{"type":24,"value":344}," checkout",{"type":18,"tag":119,"props":346,"children":347},{"style":148},[348],{"type":24,"value":349}," --",{"type":18,"tag":119,"props":351,"children":352},{"style":142},[353],{"type":24,"value":156},{"type":18,"tag":119,"props":355,"children":357},{"class":121,"line":356},3,[358],{"type":18,"tag":119,"props":359,"children":361},{"emptyLinePlaceholder":360},true,[362],{"type":24,"value":363},"\n",{"type":18,"tag":119,"props":365,"children":367},{"class":121,"line":366},4,[368],{"type":18,"tag":119,"props":369,"children":370},{"style":126},[371],{"type":24,"value":372},"# 撤销指定前端文件修改\n",{"type":18,"tag":119,"props":374,"children":376},{"class":121,"line":375},5,[377,381,385,389],{"type":18,"tag":119,"props":378,"children":379},{"style":136},[380],{"type":24,"value":139},{"type":18,"tag":119,"props":382,"children":383},{"style":142},[384],{"type":24,"value":344},{"type":18,"tag":119,"props":386,"children":387},{"style":148},[388],{"type":24,"value":349},{"type":18,"tag":119,"props":390,"children":391},{"style":142},[392],{"type":24,"value":393}," 前端文件路径\n",{"type":18,"tag":33,"props":395,"children":396},{},[397,399,404],{"type":24,"value":398},"示例（撤销",{"type":18,"tag":85,"props":400,"children":402},{"className":401},[],[403],{"type":24,"value":90},{"type":24,"value":405},"文件夹所有修改）：",{"type":18,"tag":109,"props":407,"children":409},{"className":111,"code":408,"language":113,"meta":7,"style":7},"git checkout -- frontend\u002F\n",[410],{"type":18,"tag":85,"props":411,"children":412},{"__ignoreMap":7},[413],{"type":18,"tag":119,"props":414,"children":415},{"class":121,"line":122},[416,420,424,428],{"type":18,"tag":119,"props":417,"children":418},{"style":136},[419],{"type":24,"value":139},{"type":18,"tag":119,"props":421,"children":422},{"style":142},[423],{"type":24,"value":344},{"type":18,"tag":119,"props":425,"children":426},{"style":148},[427],{"type":24,"value":349},{"type":18,"tag":119,"props":429,"children":430},{"style":142},[431],{"type":24,"value":195},{"type":18,"tag":27,"props":433,"children":435},{"id":434},"场景-4恢复忽略规则",[436],{"type":24,"value":437},"场景 4：恢复忽略规则",{"type":18,"tag":33,"props":439,"children":440},{},[441],{"type":24,"value":442},"若后续需要提交本地前端修改，执行以下命令取消忽略：",{"type":18,"tag":109,"props":444,"children":446},{"className":111,"code":445,"language":113,"meta":7,"style":7},"# 取消整个文件夹忽略\ngit update-index --no-skip-worktree 前端文件夹名\u002F\n\n# 取消单个文件忽略\ngit update-index --no-skip-worktree 前端文件路径\n",[447],{"type":18,"tag":85,"props":448,"children":449},{"__ignoreMap":7},[450,458,478,485,493],{"type":18,"tag":119,"props":451,"children":452},{"class":121,"line":122},[453],{"type":18,"tag":119,"props":454,"children":455},{"style":126},[456],{"type":24,"value":457},"# 取消整个文件夹忽略\n",{"type":18,"tag":119,"props":459,"children":460},{"class":121,"line":132},[461,465,469,474],{"type":18,"tag":119,"props":462,"children":463},{"style":136},[464],{"type":24,"value":139},{"type":18,"tag":119,"props":466,"children":467},{"style":142},[468],{"type":24,"value":145},{"type":18,"tag":119,"props":470,"children":471},{"style":148},[472],{"type":24,"value":473}," --no-skip-worktree",{"type":18,"tag":119,"props":475,"children":476},{"style":142},[477],{"type":24,"value":156},{"type":18,"tag":119,"props":479,"children":480},{"class":121,"line":356},[481],{"type":18,"tag":119,"props":482,"children":483},{"emptyLinePlaceholder":360},[484],{"type":24,"value":363},{"type":18,"tag":119,"props":486,"children":487},{"class":121,"line":366},[488],{"type":18,"tag":119,"props":489,"children":490},{"style":126},[491],{"type":24,"value":492},"# 取消单个文件忽略\n",{"type":18,"tag":119,"props":494,"children":495},{"class":121,"line":375},[496,500,504,508],{"type":18,"tag":119,"props":497,"children":498},{"style":136},[499],{"type":24,"value":139},{"type":18,"tag":119,"props":501,"children":502},{"style":142},[503],{"type":24,"value":145},{"type":18,"tag":119,"props":505,"children":506},{"style":148},[507],{"type":24,"value":473},{"type":18,"tag":119,"props":509,"children":510},{"style":142},[511],{"type":24,"value":393},{"type":18,"tag":27,"props":513,"children":515},{"id":514},"核心规则总结",[516],{"type":24,"value":514},{"type":18,"tag":518,"props":519,"children":520},"table",{},[521,546],{"type":18,"tag":522,"props":523,"children":524},"thead",{},[525],{"type":18,"tag":526,"props":527,"children":528},"tr",{},[529,536,541],{"type":18,"tag":530,"props":531,"children":533},"th",{"align":532},"left",[534],{"type":24,"value":535},"操作需求",{"type":18,"tag":530,"props":537,"children":538},{"align":532},[539],{"type":24,"value":540},"命令",{"type":18,"tag":530,"props":542,"children":543},{"align":532},[544],{"type":24,"value":545},"效果",{"type":18,"tag":547,"props":548,"children":549},"tbody",{},[550,573,595],{"type":18,"tag":526,"props":551,"children":552},{},[553,559,568],{"type":18,"tag":554,"props":555,"children":556},"td",{"align":532},[557],{"type":24,"value":558},"永久忽略本地前端文件",{"type":18,"tag":554,"props":560,"children":561},{"align":532},[562],{"type":18,"tag":85,"props":563,"children":565},{"className":564},[],[566],{"type":24,"value":567},"git update-index --skip-worktree 前端文件夹\u002F文件",{"type":18,"tag":554,"props":569,"children":570},{"align":532},[571],{"type":24,"value":572},"Git 忽略本地修改，不提交、不干扰同事",{"type":18,"tag":526,"props":574,"children":575},{},[576,581,590],{"type":18,"tag":554,"props":577,"children":578},{"align":532},[579],{"type":24,"value":580},"临时恢复本地前端文件",{"type":18,"tag":554,"props":582,"children":583},{"align":532},[584],{"type":18,"tag":85,"props":585,"children":587},{"className":586},[],[588],{"type":24,"value":589},"git checkout -- 前端文件夹\u002F文件",{"type":18,"tag":554,"props":591,"children":592},{"align":532},[593],{"type":24,"value":594},"撤销本地修改，同步远程版本",{"type":18,"tag":526,"props":596,"children":597},{},[598,603,612],{"type":18,"tag":554,"props":599,"children":600},{"align":532},[601],{"type":24,"value":602},"恢复提交前端文件权限",{"type":18,"tag":554,"props":604,"children":605},{"align":532},[606],{"type":18,"tag":85,"props":607,"children":609},{"className":608},[],[610],{"type":24,"value":611},"git update-index --no-skip-worktree 前端文件夹\u002F文件",{"type":18,"tag":554,"props":613,"children":614},{"align":532},[615],{"type":24,"value":616},"取消忽略，可正常提交前端修改",{"type":18,"tag":33,"props":618,"children":619},{},[620],{"type":18,"tag":47,"props":621,"children":622},{},[623],{"type":24,"value":624},"注意事项",{"type":18,"tag":626,"props":627,"children":628},"ol",{},[629,649,661],{"type":18,"tag":43,"props":630,"children":631},{},[632,634,639,641,647],{"type":24,"value":633},"执行命令前需确保在",{"type":18,"tag":47,"props":635,"children":636},{},[637],{"type":24,"value":638},"项目根目录",{"type":24,"value":640},"（与",{"type":18,"tag":85,"props":642,"children":644},{"className":643},[],[645],{"type":24,"value":646},".git",{"type":24,"value":648},"文件夹同级）；",{"type":18,"tag":43,"props":650,"children":651},{},[652,654,659],{"type":24,"value":653},"该规则仅对",{"type":18,"tag":47,"props":655,"children":656},{},[657],{"type":24,"value":658},"本地仓库",{"type":24,"value":660},"生效，不会影响远程仓库和同事的本地环境；",{"type":18,"tag":43,"props":662,"children":663},{},[664],{"type":24,"value":665},"若多人协作，需提前沟通避免重复配置冲突。",{"type":18,"tag":667,"props":668,"children":669},"hr",{},[],{"type":18,"tag":19,"props":671,"children":673},{"id":672},"指令2团队-git-远程推送",[674],{"type":24,"value":675},"指令2：团队 Git 远程推送",{"type":18,"tag":27,"props":677,"children":679},{"id":678},"场景说明-1",[680],{"type":24,"value":29},{"type":18,"tag":33,"props":682,"children":683},{},[684,686,692,694,700],{"type":24,"value":685},"我现在是团队后端开发者，我的远程仓库分支为 ",{"type":18,"tag":85,"props":687,"children":689},{"className":688},[],[690],{"type":24,"value":691},"backend",{"type":24,"value":693}," 分支，我现在需要向主分支 ",{"type":18,"tag":85,"props":695,"children":697},{"className":696},[],[698],{"type":24,"value":699},"master",{"type":24,"value":701}," 提交新功能！",{"type":18,"tag":39,"props":703,"children":704},{},[705,718,732,746,757],{"type":18,"tag":43,"props":706,"children":707},{},[708,710],{"type":24,"value":709},"本地开发分支：",{"type":18,"tag":47,"props":711,"children":712},{},[713],{"type":18,"tag":85,"props":714,"children":716},{"className":715},[],[717],{"type":24,"value":699},{"type":18,"tag":43,"props":719,"children":720},{},[721,723],{"type":24,"value":722},"你负责的远程分支：",{"type":18,"tag":47,"props":724,"children":725},{},[726],{"type":18,"tag":85,"props":727,"children":729},{"className":728},[],[730],{"type":24,"value":731},"origin\u002Fbackend",{"type":18,"tag":43,"props":733,"children":734},{},[735,737],{"type":24,"value":736},"队友负责的远程分支：",{"type":18,"tag":47,"props":738,"children":739},{},[740],{"type":18,"tag":85,"props":741,"children":743},{"className":742},[],[744],{"type":24,"value":745},"origin\u002Ffrontend",{"type":18,"tag":43,"props":747,"children":748},{},[749,751],{"type":24,"value":750},"你的本地 master 已远超 ",{"type":18,"tag":85,"props":752,"children":754},{"className":753},[],[755],{"type":24,"value":756},"origin\u002Fmaster",{"type":18,"tag":43,"props":758,"children":759},{},[760,762],{"type":24,"value":761},"目标：",{"type":18,"tag":47,"props":763,"children":764},{},[765,767,772,774,779],{"type":24,"value":766},"提交新功能到 ",{"type":18,"tag":85,"props":768,"children":770},{"className":769},[],[771],{"type":24,"value":756},{"type":24,"value":773},"，绝不影响 ",{"type":18,"tag":85,"props":775,"children":777},{"className":776},[],[778],{"type":24,"value":90},{"type":24,"value":780}," 代码",{"type":18,"tag":27,"props":782,"children":784},{"id":783},"安全操作流程",[785],{"type":24,"value":783},{"type":18,"tag":626,"props":787,"children":788},{},[789],{"type":18,"tag":43,"props":790,"children":791},{},[792],{"type":24,"value":793},"拉取最新远程代码（不伤代码）",{"type":18,"tag":109,"props":795,"children":797},{"className":111,"code":796,"language":113,"meta":7,"style":7},"git fetch origin\n",[798],{"type":18,"tag":85,"props":799,"children":800},{"__ignoreMap":7},[801],{"type":18,"tag":119,"props":802,"children":803},{"class":121,"line":122},[804,808,813],{"type":18,"tag":119,"props":805,"children":806},{"style":136},[807],{"type":24,"value":139},{"type":18,"tag":119,"props":809,"children":810},{"style":142},[811],{"type":24,"value":812}," fetch",{"type":18,"tag":119,"props":814,"children":815},{"style":142},[816],{"type":24,"value":817}," origin\n",{"type":18,"tag":626,"props":819,"children":820},{"start":132},[821],{"type":18,"tag":43,"props":822,"children":823},{},[824,826,831],{"type":24,"value":825},"确保你在本地 ",{"type":18,"tag":85,"props":827,"children":829},{"className":828},[],[830],{"type":24,"value":699},{"type":24,"value":832}," 分支（你本地仓库负责的分支）",{"type":18,"tag":109,"props":834,"children":836},{"className":111,"code":835,"language":113,"meta":7,"style":7},"git checkout master\n",[837],{"type":18,"tag":85,"props":838,"children":839},{"__ignoreMap":7},[840],{"type":18,"tag":119,"props":841,"children":842},{"class":121,"line":122},[843,847,851],{"type":18,"tag":119,"props":844,"children":845},{"style":136},[846],{"type":24,"value":139},{"type":18,"tag":119,"props":848,"children":849},{"style":142},[850],{"type":24,"value":344},{"type":18,"tag":119,"props":852,"children":853},{"style":142},[854],{"type":24,"value":855}," master\n",{"type":18,"tag":626,"props":857,"children":858},{"start":356},[859],{"type":18,"tag":43,"props":860,"children":861},{},[862,864,869,871],{"type":24,"value":863},"把本地 ",{"type":18,"tag":85,"props":865,"children":867},{"className":866},[],[868],{"type":24,"value":699},{"type":24,"value":870}," 推送到 ",{"type":18,"tag":47,"props":872,"children":873},{},[874,876,881],{"type":24,"value":875},"你负责的远程 ",{"type":18,"tag":85,"props":877,"children":879},{"className":878},[],[880],{"type":24,"value":691},{"type":24,"value":882}," 分支",{"type":18,"tag":109,"props":884,"children":886},{"className":111,"code":885,"language":113,"meta":7,"style":7},"git push origin master:backend\n",[887],{"type":18,"tag":85,"props":888,"children":889},{"__ignoreMap":7},[890],{"type":18,"tag":119,"props":891,"children":892},{"class":121,"line":122},[893,897,902,907],{"type":18,"tag":119,"props":894,"children":895},{"style":136},[896],{"type":24,"value":139},{"type":18,"tag":119,"props":898,"children":899},{"style":142},[900],{"type":24,"value":901}," push",{"type":18,"tag":119,"props":903,"children":904},{"style":142},[905],{"type":24,"value":906}," origin",{"type":18,"tag":119,"props":908,"children":909},{"style":142},[910],{"type":24,"value":911}," master:backend\n",{"type":18,"tag":33,"props":913,"children":914},{},[915,920,922,927,929,934,936,941,943,948],{"type":18,"tag":47,"props":916,"children":917},{},[918],{"type":24,"value":919},"命令注释",{"type":24,"value":921},"：本地 ",{"type":18,"tag":85,"props":923,"children":925},{"className":924},[],[926],{"type":24,"value":699},{"type":24,"value":928}," → 推送到 远程 ",{"type":18,"tag":85,"props":930,"children":932},{"className":931},[],[933],{"type":24,"value":731},{"type":24,"value":935},"（不会碰 ",{"type":18,"tag":85,"props":937,"children":939},{"className":938},[],[940],{"type":24,"value":699},{"type":24,"value":942}," 主分支，不会碰 ",{"type":18,"tag":85,"props":944,"children":946},{"className":945},[],[947],{"type":24,"value":90},{"type":24,"value":949},"）",{"type":18,"tag":626,"props":951,"children":952},{"start":366},[953],{"type":18,"tag":43,"props":954,"children":955},{},[956,958],{"type":24,"value":957},"在 GitHub 上发起 ",{"type":18,"tag":47,"props":959,"children":960},{},[961],{"type":24,"value":962},"Pull Request (PR)",{"type":18,"tag":39,"props":964,"children":965},{},[966,976,986],{"type":18,"tag":43,"props":967,"children":968},{},[969,971],{"type":24,"value":970},"base: ",{"type":18,"tag":85,"props":972,"children":974},{"className":973},[],[975],{"type":24,"value":699},{"type":18,"tag":43,"props":977,"children":978},{},[979,981],{"type":24,"value":980},"compare: ",{"type":18,"tag":85,"props":982,"children":984},{"className":983},[],[985],{"type":24,"value":691},{"type":18,"tag":43,"props":987,"children":988},{},[989],{"type":24,"value":990},"创建 PR → 合并",{"type":18,"tag":33,"props":992,"children":993},{},[994],{"type":18,"tag":995,"props":996,"children":997},"em",{},[998],{"type":24,"value":999},"如果你想直接本地合并（不发起 PR）",{"type":18,"tag":109,"props":1001,"children":1003},{"className":111,"code":1002,"language":113,"meta":7,"style":7},"git checkout master\ngit pull origin master   # 同步最新主分支\ngit push origin master   # 推送你的功能\n",[1004],{"type":18,"tag":85,"props":1005,"children":1006},{"__ignoreMap":7},[1007,1022,1048],{"type":18,"tag":119,"props":1008,"children":1009},{"class":121,"line":122},[1010,1014,1018],{"type":18,"tag":119,"props":1011,"children":1012},{"style":136},[1013],{"type":24,"value":139},{"type":18,"tag":119,"props":1015,"children":1016},{"style":142},[1017],{"type":24,"value":344},{"type":18,"tag":119,"props":1019,"children":1020},{"style":142},[1021],{"type":24,"value":855},{"type":18,"tag":119,"props":1023,"children":1024},{"class":121,"line":132},[1025,1029,1034,1038,1043],{"type":18,"tag":119,"props":1026,"children":1027},{"style":136},[1028],{"type":24,"value":139},{"type":18,"tag":119,"props":1030,"children":1031},{"style":142},[1032],{"type":24,"value":1033}," pull",{"type":18,"tag":119,"props":1035,"children":1036},{"style":142},[1037],{"type":24,"value":906},{"type":18,"tag":119,"props":1039,"children":1040},{"style":142},[1041],{"type":24,"value":1042}," master",{"type":18,"tag":119,"props":1044,"children":1045},{"style":126},[1046],{"type":24,"value":1047},"   # 同步最新主分支\n",{"type":18,"tag":119,"props":1049,"children":1050},{"class":121,"line":356},[1051,1055,1059,1063,1067],{"type":18,"tag":119,"props":1052,"children":1053},{"style":136},[1054],{"type":24,"value":139},{"type":18,"tag":119,"props":1056,"children":1057},{"style":142},[1058],{"type":24,"value":901},{"type":18,"tag":119,"props":1060,"children":1061},{"style":142},[1062],{"type":24,"value":906},{"type":18,"tag":119,"props":1064,"children":1065},{"style":142},[1066],{"type":24,"value":1042},{"type":18,"tag":119,"props":1068,"children":1069},{"style":126},[1070],{"type":24,"value":1071},"   # 推送你的功能\n",{"type":18,"tag":33,"props":1073,"children":1074},{},[1075],{"type":18,"tag":47,"props":1076,"children":1077},{},[1078],{"type":24,"value":1079},"绝对不能做（会覆盖队友代码）",{"type":18,"tag":626,"props":1081,"children":1082},{},[1083,1094,1105],{"type":18,"tag":43,"props":1084,"children":1085},{},[1086,1088],{"type":24,"value":1087},"不要用 ",{"type":18,"tag":85,"props":1089,"children":1091},{"className":1090},[],[1092],{"type":24,"value":1093},"git push --force",{"type":18,"tag":43,"props":1095,"children":1096},{},[1097,1099,1104],{"type":24,"value":1098},"不要动 ",{"type":18,"tag":85,"props":1100,"children":1102},{"className":1101},[],[1103],{"type":24,"value":90},{"type":24,"value":882},{"type":18,"tag":43,"props":1106,"children":1107},{},[1108],{"type":24,"value":1109},"不要强推覆盖主分支",{"type":18,"tag":667,"props":1111,"children":1112},{},[],{"type":18,"tag":19,"props":1114,"children":1116},{"id":1115},"指令3connection-was-reset-解决方案",[1117],{"type":24,"value":1118},"指令3：Connection was reset 解决方案",{"type":18,"tag":27,"props":1120,"children":1122},{"id":1121},"错误截图",[1123],{"type":24,"value":1121},{"type":18,"tag":33,"props":1125,"children":1126},{},[1127],{"type":18,"tag":1128,"props":1129,"children":1132},"img",{"alt":1130,"src":1131},"1777951180085","\u002Fimages\u002Fblog\u002Fgit-commands\u002F1777951180085.png",[],{"type":18,"tag":27,"props":1134,"children":1136},{"id":1135},"git-连接失败解决方案",[1137],{"type":24,"value":1138},"Git 连接失败解决方案",{"type":18,"tag":33,"props":1140,"children":1141},{},[1142],{"type":18,"tag":47,"props":1143,"children":1144},{},[1145],{"type":24,"value":1146},"问题现象",{"type":18,"tag":33,"props":1148,"children":1149},{},[1150,1152,1158],{"type":24,"value":1151},"执行 ",{"type":18,"tag":85,"props":1153,"children":1155},{"className":1154},[],[1156],{"type":24,"value":1157},"git push\u002Fpull",{"type":24,"value":1159}," 时报错：",{"type":18,"tag":109,"props":1161,"children":1163},{"className":111,"code":1162,"language":113,"meta":7,"style":7},"Recv failure: Connection was reset\nFailed to connect to github.com port 443: Could not connect to server\n",[1164],{"type":18,"tag":85,"props":1165,"children":1166},{"__ignoreMap":7},[1167,1195],{"type":18,"tag":119,"props":1168,"children":1169},{"class":121,"line":122},[1170,1175,1180,1185,1190],{"type":18,"tag":119,"props":1171,"children":1172},{"style":136},[1173],{"type":24,"value":1174},"Recv",{"type":18,"tag":119,"props":1176,"children":1177},{"style":142},[1178],{"type":24,"value":1179}," failure:",{"type":18,"tag":119,"props":1181,"children":1182},{"style":142},[1183],{"type":24,"value":1184}," Connection",{"type":18,"tag":119,"props":1186,"children":1187},{"style":142},[1188],{"type":24,"value":1189}," was",{"type":18,"tag":119,"props":1191,"children":1192},{"style":142},[1193],{"type":24,"value":1194}," reset\n",{"type":18,"tag":119,"props":1196,"children":1197},{"class":121,"line":132},[1198,1203,1208,1213,1217,1222,1227,1232,1237,1242,1246,1250],{"type":18,"tag":119,"props":1199,"children":1200},{"style":136},[1201],{"type":24,"value":1202},"Failed",{"type":18,"tag":119,"props":1204,"children":1205},{"style":142},[1206],{"type":24,"value":1207}," to",{"type":18,"tag":119,"props":1209,"children":1210},{"style":142},[1211],{"type":24,"value":1212}," connect",{"type":18,"tag":119,"props":1214,"children":1215},{"style":142},[1216],{"type":24,"value":1207},{"type":18,"tag":119,"props":1218,"children":1219},{"style":142},[1220],{"type":24,"value":1221}," github.com",{"type":18,"tag":119,"props":1223,"children":1224},{"style":142},[1225],{"type":24,"value":1226}," port",{"type":18,"tag":119,"props":1228,"children":1229},{"style":142},[1230],{"type":24,"value":1231}," 443:",{"type":18,"tag":119,"props":1233,"children":1234},{"style":142},[1235],{"type":24,"value":1236}," Could",{"type":18,"tag":119,"props":1238,"children":1239},{"style":142},[1240],{"type":24,"value":1241}," not",{"type":18,"tag":119,"props":1243,"children":1244},{"style":142},[1245],{"type":24,"value":1212},{"type":18,"tag":119,"props":1247,"children":1248},{"style":142},[1249],{"type":24,"value":1207},{"type":18,"tag":119,"props":1251,"children":1252},{"style":142},[1253],{"type":24,"value":1254}," server\n",{"type":18,"tag":33,"props":1256,"children":1257},{},[1258],{"type":18,"tag":47,"props":1259,"children":1260},{},[1261],{"type":24,"value":1262},"核心原因",{"type":18,"tag":33,"props":1264,"children":1265},{},[1266,1268,1274,1276,1282],{"type":24,"value":1267},"使用 ",{"type":18,"tag":85,"props":1269,"children":1271},{"className":1270},[],[1272],{"type":24,"value":1273},"v2rayN",{"type":24,"value":1275}," 代理工具导致本地网络无法正常访问 ",{"type":18,"tag":85,"props":1277,"children":1279},{"className":1278},[],[1280],{"type":24,"value":1281},"GitHub HTTPS",{"type":24,"value":1283}," 端口（443），Git 未配置代理导致连接失败。",{"type":18,"tag":33,"props":1285,"children":1286},{},[1287],{"type":18,"tag":47,"props":1288,"children":1289},{},[1290],{"type":24,"value":1291},"最终解决方案",{"type":18,"tag":33,"props":1293,"children":1294},{},[1295,1297,1302],{"type":24,"value":1296},"通过 Git 全局代理配置 解决，执行以下命令，配置完成后，重新执行 ",{"type":18,"tag":85,"props":1298,"children":1300},{"className":1299},[],[1301],{"type":24,"value":1157},{"type":24,"value":1303}," 即可正常连接 GitHub。",{"type":18,"tag":109,"props":1305,"children":1307},{"className":111,"code":1306,"language":113,"meta":7,"style":7},"# 配置 Git 全局 HTTP\u002FHTTPS 代理（替换为自己的本地代理端口，v2rayN常用 10808）\ngit config --global http.proxy http:\u002F\u002F127.0.0.1:10808 # 该问题当我执行这条指令后就已解决问题\ngit config --global https.proxy http:\u002F\u002F127.0.0.1:10808\n",[1308],{"type":18,"tag":85,"props":1309,"children":1310},{"__ignoreMap":7},[1311,1319,1351],{"type":18,"tag":119,"props":1312,"children":1313},{"class":121,"line":122},[1314],{"type":18,"tag":119,"props":1315,"children":1316},{"style":126},[1317],{"type":24,"value":1318},"# 配置 Git 全局 HTTP\u002FHTTPS 代理（替换为自己的本地代理端口，v2rayN常用 10808）\n",{"type":18,"tag":119,"props":1320,"children":1321},{"class":121,"line":132},[1322,1326,1331,1336,1341,1346],{"type":18,"tag":119,"props":1323,"children":1324},{"style":136},[1325],{"type":24,"value":139},{"type":18,"tag":119,"props":1327,"children":1328},{"style":142},[1329],{"type":24,"value":1330}," config",{"type":18,"tag":119,"props":1332,"children":1333},{"style":148},[1334],{"type":24,"value":1335}," --global",{"type":18,"tag":119,"props":1337,"children":1338},{"style":142},[1339],{"type":24,"value":1340}," http.proxy",{"type":18,"tag":119,"props":1342,"children":1343},{"style":142},[1344],{"type":24,"value":1345}," http:\u002F\u002F127.0.0.1:10808",{"type":18,"tag":119,"props":1347,"children":1348},{"style":126},[1349],{"type":24,"value":1350}," # 该问题当我执行这条指令后就已解决问题\n",{"type":18,"tag":119,"props":1352,"children":1353},{"class":121,"line":356},[1354,1358,1362,1366,1371],{"type":18,"tag":119,"props":1355,"children":1356},{"style":136},[1357],{"type":24,"value":139},{"type":18,"tag":119,"props":1359,"children":1360},{"style":142},[1361],{"type":24,"value":1330},{"type":18,"tag":119,"props":1363,"children":1364},{"style":148},[1365],{"type":24,"value":1335},{"type":18,"tag":119,"props":1367,"children":1368},{"style":142},[1369],{"type":24,"value":1370}," https.proxy",{"type":18,"tag":119,"props":1372,"children":1373},{"style":142},[1374],{"type":24,"value":1375}," http:\u002F\u002F127.0.0.1:10808\n",{"type":18,"tag":33,"props":1377,"children":1378},{},[1379],{"type":18,"tag":47,"props":1380,"children":1381},{},[1382],{"type":24,"value":1383},"取消代理（无需代理时使用）",{"type":18,"tag":109,"props":1385,"children":1387},{"className":111,"code":1386,"language":113,"meta":7,"style":7},"git config --global --unset http.proxy\ngit config --global --unset https.proxy\n",[1388],{"type":18,"tag":85,"props":1389,"children":1390},{"__ignoreMap":7},[1391,1416],{"type":18,"tag":119,"props":1392,"children":1393},{"class":121,"line":122},[1394,1398,1402,1406,1411],{"type":18,"tag":119,"props":1395,"children":1396},{"style":136},[1397],{"type":24,"value":139},{"type":18,"tag":119,"props":1399,"children":1400},{"style":142},[1401],{"type":24,"value":1330},{"type":18,"tag":119,"props":1403,"children":1404},{"style":148},[1405],{"type":24,"value":1335},{"type":18,"tag":119,"props":1407,"children":1408},{"style":148},[1409],{"type":24,"value":1410}," --unset",{"type":18,"tag":119,"props":1412,"children":1413},{"style":142},[1414],{"type":24,"value":1415}," http.proxy\n",{"type":18,"tag":119,"props":1417,"children":1418},{"class":121,"line":132},[1419,1423,1427,1431,1435],{"type":18,"tag":119,"props":1420,"children":1421},{"style":136},[1422],{"type":24,"value":139},{"type":18,"tag":119,"props":1424,"children":1425},{"style":142},[1426],{"type":24,"value":1330},{"type":18,"tag":119,"props":1428,"children":1429},{"style":148},[1430],{"type":24,"value":1335},{"type":18,"tag":119,"props":1432,"children":1433},{"style":148},[1434],{"type":24,"value":1410},{"type":18,"tag":119,"props":1436,"children":1437},{"style":142},[1438],{"type":24,"value":1439}," https.proxy\n",{"type":18,"tag":33,"props":1441,"children":1442},{},[1443],{"type":18,"tag":47,"props":1444,"children":1445},{},[1446],{"type":24,"value":1447},"查看当前代理配置",{"type":18,"tag":109,"props":1449,"children":1451},{"className":111,"code":1450,"language":113,"meta":7,"style":7},"git config --global --get http.proxy\ngit config --global --get https.proxy\n",[1452],{"type":18,"tag":85,"props":1453,"children":1454},{"__ignoreMap":7},[1455,1479],{"type":18,"tag":119,"props":1456,"children":1457},{"class":121,"line":122},[1458,1462,1466,1470,1475],{"type":18,"tag":119,"props":1459,"children":1460},{"style":136},[1461],{"type":24,"value":139},{"type":18,"tag":119,"props":1463,"children":1464},{"style":142},[1465],{"type":24,"value":1330},{"type":18,"tag":119,"props":1467,"children":1468},{"style":148},[1469],{"type":24,"value":1335},{"type":18,"tag":119,"props":1471,"children":1472},{"style":148},[1473],{"type":24,"value":1474}," --get",{"type":18,"tag":119,"props":1476,"children":1477},{"style":142},[1478],{"type":24,"value":1415},{"type":18,"tag":119,"props":1480,"children":1481},{"class":121,"line":132},[1482,1486,1490,1494,1498],{"type":18,"tag":119,"props":1483,"children":1484},{"style":136},[1485],{"type":24,"value":139},{"type":18,"tag":119,"props":1487,"children":1488},{"style":142},[1489],{"type":24,"value":1330},{"type":18,"tag":119,"props":1491,"children":1492},{"style":148},[1493],{"type":24,"value":1335},{"type":18,"tag":119,"props":1495,"children":1496},{"style":148},[1497],{"type":24,"value":1474},{"type":18,"tag":119,"props":1499,"children":1500},{"style":142},[1501],{"type":24,"value":1439},{"type":18,"tag":33,"props":1503,"children":1504},{},[1505],{"type":18,"tag":47,"props":1506,"children":1507},{},[1508],{"type":24,"value":61},{"type":18,"tag":33,"props":1510,"children":1511},{},[1512],{"type":24,"value":1513},"本地开启了科学上网，浏览器可访问 GitHub，但 Git 命令行连接失败的情况。",{"type":18,"tag":65,"props":1515,"children":1516},{},[1517],{"type":18,"tag":33,"props":1518,"children":1519},{},[1520],{"type":24,"value":1521},"总结\n问题：Git 连接 GitHub 443 端口被重置，网络不通\n解决：git config --global 配置本地代理\n验证：重新执行 Git 操作，连接成功",{"type":18,"tag":27,"props":1523,"children":1525},{"id":1524},"切换https至git连接",[1526],{"type":24,"value":1527},"切换HTTPS至Git连接",{"type":18,"tag":33,"props":1529,"children":1530},{},[1531,1543,1545,1551,1553,1559],{"type":18,"tag":47,"props":1532,"children":1533},{},[1534,1536,1541],{"type":24,"value":1535},"代理 + ",{"type":18,"tag":85,"props":1537,"children":1539},{"className":1538},[],[1540],{"type":24,"value":1281},{"type":24,"value":1542}," 连接被强制重置，根本推不上去",{"type":24,"value":1544},"，可以尝试直接改用 ",{"type":18,"tag":85,"props":1546,"children":1548},{"className":1547},[],[1549],{"type":24,"value":1550},"SSH",{"type":24,"value":1552}," 推送（彻底绕开 ",{"type":18,"tag":85,"props":1554,"children":1556},{"className":1555},[],[1557],{"type":24,"value":1558},"HTTPS",{"type":24,"value":1560}," 被拦截的问题）",{"type":18,"tag":626,"props":1562,"children":1563},{},[1564],{"type":18,"tag":43,"props":1565,"children":1566},{},[1567,1572],{"type":18,"tag":47,"props":1568,"children":1569},{},[1570],{"type":24,"value":1571},"生成 SSH 密钥",{"type":24,"value":1573},"（一路回车，不用输密码）",{"type":18,"tag":109,"props":1575,"children":1577},{"className":111,"code":1576,"language":113,"meta":7,"style":7},"ssh-keygen -t ed25519\n",[1578],{"type":18,"tag":85,"props":1579,"children":1580},{"__ignoreMap":7},[1581],{"type":18,"tag":119,"props":1582,"children":1583},{"class":121,"line":122},[1584,1589,1594],{"type":18,"tag":119,"props":1585,"children":1586},{"style":136},[1587],{"type":24,"value":1588},"ssh-keygen",{"type":18,"tag":119,"props":1590,"children":1591},{"style":148},[1592],{"type":24,"value":1593}," -t",{"type":18,"tag":119,"props":1595,"children":1596},{"style":142},[1597],{"type":24,"value":1598}," ed25519\n",{"type":18,"tag":626,"props":1600,"children":1601},{"start":132},[1602],{"type":18,"tag":43,"props":1603,"children":1604},{},[1605],{"type":18,"tag":47,"props":1606,"children":1607},{},[1608],{"type":24,"value":1609},"复制公钥",{"type":18,"tag":109,"props":1611,"children":1613},{"className":111,"code":1612,"language":113,"meta":7,"style":7},"cat ~\u002F.ssh\u002Fid_ed25519.pub\n",[1614],{"type":18,"tag":85,"props":1615,"children":1616},{"__ignoreMap":7},[1617],{"type":18,"tag":119,"props":1618,"children":1619},{"class":121,"line":122},[1620,1625],{"type":18,"tag":119,"props":1621,"children":1622},{"style":136},[1623],{"type":24,"value":1624},"cat",{"type":18,"tag":119,"props":1626,"children":1627},{"style":142},[1628],{"type":24,"value":1629}," ~\u002F.ssh\u002Fid_ed25519.pub\n",{"type":18,"tag":33,"props":1631,"children":1632},{},[1633,1635,1640],{"type":24,"value":1634},"​\t把输出的一长串内容",{"type":18,"tag":47,"props":1636,"children":1637},{},[1638],{"type":24,"value":1639},"全选复制",{"type":24,"value":1641},"。",{"type":18,"tag":626,"props":1643,"children":1644},{"start":356},[1645,1679],{"type":18,"tag":43,"props":1646,"children":1647},{},[1648,1650,1654,1656,1662,1664,1670,1671,1677],{"type":24,"value":1649},"打开 GitHub 添加密钥",{"type":18,"tag":1651,"props":1652,"children":1653},"br",{},[],{"type":24,"value":1655},"GitHub → 右上角头像 → ",{"type":18,"tag":85,"props":1657,"children":1659},{"className":1658},[],[1660],{"type":24,"value":1661},"Settings",{"type":24,"value":1663}," → ",{"type":18,"tag":85,"props":1665,"children":1667},{"className":1666},[],[1668],{"type":24,"value":1669},"SSH and GPG keys",{"type":24,"value":1663},{"type":18,"tag":85,"props":1672,"children":1674},{"className":1673},[],[1675],{"type":24,"value":1676},"New SSH key",{"type":24,"value":1678}," 粘贴刚才复制的内容，保存。",{"type":18,"tag":43,"props":1680,"children":1681},{},[1682],{"type":18,"tag":47,"props":1683,"children":1684},{},[1685],{"type":24,"value":1686},"切换仓库为 SSH 地址",{"type":18,"tag":109,"props":1688,"children":1690},{"className":111,"code":1689,"language":113,"meta":7,"style":7},"git remote set-url origin git@github.com:Couiolly\u002FAIHeartCrisis.git\n",[1691],{"type":18,"tag":85,"props":1692,"children":1693},{"__ignoreMap":7},[1694],{"type":18,"tag":119,"props":1695,"children":1696},{"class":121,"line":122},[1697,1701,1706,1711,1715],{"type":18,"tag":119,"props":1698,"children":1699},{"style":136},[1700],{"type":24,"value":139},{"type":18,"tag":119,"props":1702,"children":1703},{"style":142},[1704],{"type":24,"value":1705}," remote",{"type":18,"tag":119,"props":1707,"children":1708},{"style":142},[1709],{"type":24,"value":1710}," set-url",{"type":18,"tag":119,"props":1712,"children":1713},{"style":142},[1714],{"type":24,"value":906},{"type":18,"tag":119,"props":1716,"children":1717},{"style":142},[1718],{"type":24,"value":1719}," git@github.com:Couiolly\u002FAIHeartCrisis.git\n",{"type":18,"tag":626,"props":1721,"children":1722},{"start":375},[1723],{"type":18,"tag":43,"props":1724,"children":1725},{},[1726],{"type":18,"tag":47,"props":1727,"children":1728},{},[1729],{"type":24,"value":1730},"直接推送（就是你要的 master → 后）",{"type":18,"tag":109,"props":1732,"children":1734},{"className":111,"code":1733,"language":113,"meta":7,"style":7},"git push origin master:后\n",[1735],{"type":18,"tag":85,"props":1736,"children":1737},{"__ignoreMap":7},[1738],{"type":18,"tag":119,"props":1739,"children":1740},{"class":121,"line":122},[1741,1745,1749,1753],{"type":18,"tag":119,"props":1742,"children":1743},{"style":136},[1744],{"type":24,"value":139},{"type":18,"tag":119,"props":1746,"children":1747},{"style":142},[1748],{"type":24,"value":901},{"type":18,"tag":119,"props":1750,"children":1751},{"style":142},[1752],{"type":24,"value":906},{"type":18,"tag":119,"props":1754,"children":1755},{"style":142},[1756],{"type":24,"value":1757}," master:后\n",{"type":18,"tag":1759,"props":1760,"children":1761},"style",{},[1762],{"type":24,"value":1763},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":132,"depth":132,"links":1765},[1766,1767,1768],{"id":21,"depth":356,"text":25},{"id":672,"depth":356,"text":675},{"id":1115,"depth":356,"text":1118},"markdown","content:blog:2026-05-09-GitCommands.md","content","blog\u002F2026-05-09-GitCommands.md","blog\u002F2026-05-09-GitCommands","md",1780801017577]