hexo-blog-deploy/2020/07/28/git的常见问题处理/index.html

16 lines
50 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width"><meta name="theme-color" content="#222"><meta name="generator" content="Hexo 5.4.2"><link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png"><link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png"><link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png"><link rel="mask-icon" href="/images/logo.svg" color="#222"><link rel="stylesheet" href="/css/main.css"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha256-HtsXJanqjKTc8vVQjO4YMhiqFoXkfBsjBWcX91T1jr8=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" integrity="sha256-Vzbj7sDDS/woiFS3uNKo8eIuni59rjyNGtXfstRzStA=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pace/1.2.4/themes/blue/pace-theme-minimal.css"><script src="https://cdnjs.cloudflare.com/ajax/libs/pace/1.2.4/pace.min.js" integrity="sha256-gqd7YTjg/BtfqWSwsJOvndl0Bxc8gFImLEkXQT8+qj0=" crossorigin="anonymous"></script><script class="next-config" data-name="main" type="application/json">{"hostname":"kiki.kim","root":"/","images":"/images","scheme":"Gemini","darkmode":false,"version":"8.15.1","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":{"enable":true,"style":"flat"},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":false,"async":false,"transition":{"menu_item":"fadeInDown","post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果:${query}","hits_time":"找到 ${hits} 个搜索结果(用时 ${time} 毫秒)","hits":"找到 ${hits} 个搜索结果"},"path":"/search.xml","localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false}}</script><script src="/js/config.js"></script><meta name="description" content="git的常见问题处理"><meta property="og:type" content="article"><meta property="og:title" content="git的常见问题处理"><meta property="og:url" content="http://kiki.kim/2020/07/28/git%E7%9A%84%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%A4%84%E7%90%86/index.html"><meta property="og:site_name" content="随言碎语"><meta property="og:description" content="git的常见问题处理"><meta property="og:locale" content="zh_CN"><meta property="og:image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195617845.png"><meta property="og:image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195707324.png"><meta property="og:image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195738986.png"><meta property="og:image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195800339.png"><meta property="og:image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195837683.png"><meta property="og:image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428200205600.png"><meta property="og:image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428202514875.png"><meta property="og:image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428202629280.png"><meta property="article:published_time" content="2020-07-28T15:56:55.000Z"><meta property="article:modified_time" content="2023-05-11T04:42:50.416Z"><meta property="article:author" content="小梦同学"><meta property="article:tag" content="git"><meta name="twitter:card" content="summary"><meta name="twitter:image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195617845.png"><link rel="canonical" href="http://kiki.kim/2020/07/28/git%E7%9A%84%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%A4%84%E7%90%86/"><script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"http://kiki.kim/2020/07/28/git%E7%9A%84%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%A4%84%E7%90%86/","path":"2020/07/28/git的常见问题处理/","title":"git的常见问题处理"}</script><script class="next-config" data-name="calendar" type="application/json">""</script><title>git的常见问题处理 | 随言碎语</title><noscript><link rel="stylesheet" href="/css/noscript.css"></noscript><link rel="alternate" href="/atom.xml" title="随言碎语" type="application/atom+xml"><style>.darkmode--activated{--body-bg-color:#282828;--content-bg-color:#333;--card-bg-color:#555;--text-color:#ccc;--blockquote-color:#bbb;--link-color:#ccc;--link-hover-color:#eee;--brand-color:#ddd;--brand-hover-color:#ddd;--table-row-odd-bg-color:#282828;--table-row-hover-bg-color:#363636;--menu-item-bg-color:#555;--btn-default-bg:#222;--btn-default-color:#ccc;--btn-default-border-color:#555;--btn-default-hover-bg:#666;--btn-default-hover-color:#ccc;--btn-default-hover-border-color:#666;--highlight-background:#282b2e;--highlight-foreground:#a9b7c6;--highlight-gutter-background:#34393d;--highlight-gutter-foreground:#9ca9b6}.darkmode--activated img{opacity:.75}.darkmode--activated img:hover{opacity:.9}.darkmode--activated code{color:#69dbdc;background:0 0}button.darkmode-toggle{z-index:9999}.darkmode-ignore,img{display:flex!important}.beian img{display:inline-block!important}</style></head><body itemscope itemtype="http://schema.org/WebPage"><div class="headband"></div><main class="main"><div class="column"><header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="site-brand-container"><div class="site-nav-toggle"><div class="toggle" aria-label="切换导航栏" role="button"><span class="toggle-line"></span> <span class="toggle-line"></span> <span class="toggle-line"></span></div></div><div class="site-meta"><a href="/" class="brand" rel="start"><i class="logo-line"></i><p class="site-title">随言碎语</p><i class="logo-line"></i></a><p class="site-subtitle" itemprop="description">咕叽咕叽</p></div><div class="site-nav-right"><div class="toggle popup-trigger" aria-label="搜索" role="button"><i class="fa fa-search fa-fw fa-lg"></i></div></div></div><nav class="site-nav"><ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签<span class="badge">64</span></a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档<span class="badge">57</span></a></li><li class="menu-item menu-item-about"><a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a></li><li class="menu-item menu-item-search"><a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索</a></li></ul></nav><div class="search-pop-overlay"><div class="popup search-popup"><div class="search-header"><span class="search-icon"><i class="fa fa-search"></i></span><div class="search-input-container"><input autocomplete="off" autocapitalize="off" maxlength="80" placeholder="搜索..." spellcheck="false" type="search" class="search-input"></div><span class="popup-btn-close" role="button"><i class="fa fa-times-circle"></i></span></div><div class="search-result-container no-result"><div class="search-result-icon"><i class="fa fa-spinner fa-pulse fa-5x"></i></div></div></div></div><script type="text/javascript" src="/js/cursor/zjAdd.js"></script><div class="musicwyy2" style="top:200px;position:fixed;left:0;bottom:0;z-index:105;opacity:1;width:45px;height:45px;font-size:45px;font-family:'Long Cang'"><button type="button" style="top:200px;width:45px;height:45px;margin-top:10px;margin-bottom:10px;border-width:0;z-index:200;background:0 0;border-width:0;outline:0" onclick="musicChange()"><img src="/images/wy.svg"></button></div><div class="musicwyy1" style="position:fixed;top:200px;left:0;bottom:0;z-index:100;opacity:1;width:45px;height:45px;font-size:0"><div class="aplayer-miniswitcher" style="top:200px;height:110px;width:20px;display:inline-block;overflow:hidden"></div><div style="width:calc(100% - 30px);top:200px;height:110px;display:none" id="musicZJ"><div class="musicwyy1" style="position:fixed;top:200px;left:15px;bottom:0;z-index:100;opacity:1;width:300px;height:110px;font-size:0"><div class="aplayer-miniswitcher" style="top:200px;height:110px;width:20px;display:inline-block;overflow:hidden"></div><div style="width:calc(100% - 30px);top:200px;height:110px;display:inline-block" id="musicZJ"><iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="330" height="450" src="//music.163.com/outchain/player?type=0&id=8009036598&auto=0&height=430"></iframe></div></div></div></div></header><aside class="sidebar"><div class="sidebar-inner sidebar-nav-active sidebar-toc-active"><ul class="sidebar-nav"><li class="sidebar-nav-toc">文章目录</li><li class="sidebar-nav-overview">站点概览</li></ul><div class="sidebar-panel-container"><div class="post-toc-wrap sidebar-panel"><div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-Git-Push-%E5%85%8D%E8%BE%93%E7%94%A8%E6%88%B7%E5%90%8D%E5%92%8C%E5%AF%86%E7%A0%81"><span class="nav-number">1.</span> <span class="nav-text">1.Git Push 免输用户名和密码</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-git%E9%85%8D%E7%BD%AE%E7%94%A8%E6%88%B7"><span class="nav-number">2.</span> <span class="nav-text">2. git配置用户</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-git%E9%85%8D%E7%BD%AE%E5%A4%9A%E7%94%A8%E6%88%B7"><span class="nav-number">3.</span> <span class="nav-text">3.git配置多用户</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4-Git-Bash%E7%BB%88%E7%AB%AF%E4%B8%AD%E6%96%87%E8%BE%93%E5%87%BA%E6%98%BE%E7%A4%BA%E4%B9%B1%E7%A0%81"><span class="nav-number">4.</span> <span class="nav-text">4.Git Bash终端中文输出显示乱码</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#5-windows-git-%E6%9B%B4%E6%94%B9%E4%B8%BAunix%E6%A8%A1%E5%BC%8F%E6%8D%A2%E8%A1%8C%E7%AC%A6%E5%86%B3%E8%A7%A3%E6%96%B9%E6%B3%95"><span class="nav-number">5.</span> <span class="nav-text">5. windows git 更改为unix模式换行符决解方法</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#6-git-log-%E7%9A%84%E4%BD%BF%E7%94%A8"><span class="nav-number">6.</span> <span class="nav-text">6.git log 的使用</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#7-git-tag-%E4%BB%A5%E5%8F%8A%E5%8F%91%E5%B8%83-release"><span class="nav-number">7.</span> <span class="nav-text">7.git tag 以及发布 release</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#8-git%E7%94%A8%E6%9C%AC%E5%9C%B0%E4%BB%93%E5%BA%93%E6%81%A2%E5%A4%8D%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93"><span class="nav-number">8.</span> <span class="nav-text">8. git用本地仓库恢复远程仓库</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#9-git-pull%E5%87%BA%E9%94%99"><span class="nav-number">9.</span> <span class="nav-text">9.git pull出错</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#10-%E4%B8%80%E6%AC%A1%E6%80%A7%E6%8F%90%E4%BA%A4%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%A7%E5%B0%8F%E8%B6%85%E8%BF%87%E9%99%90%E5%88%B6%EF%BC%8C%E5%AF%BC%E8%87%B4%E6%8F%90%E4%BA%A4%E5%A4%B1%E8%B4%A5"><span class="nav-number">10.</span> <span class="nav-text">10. 一次性提交的文件大小超过限制,导致提交失败</span></a></li></ol></div></div><div class="site-overview-wrap sidebar-panel"><div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person"><img class="site-author-image" itemprop="image" alt="小梦同学" src="https://halliday.oss-cn-nanjing.aliyuncs.com/imagesbjx.png"><p class="site-author-name" itemprop="name">小梦同学</p><div class="site-description" itemprop="description">欲买桂花同载酒,终不似,少年游。</div></div><div class="site-state-wrap animated"><nav class="site-state"><div class="site-state-item site-state-posts"><a href="/archives/"><span class="site-state-item-count">57</span> <span class="site-state-item-name">日志</span></a></div><div class="site-state-item site-state-tags"><a href="/tags/"><span class="site-state-item-count">64</span> <span class="site-state-item-name">标签</span></a></div></nav></div><div class="links-of-author animated"><span class="links-of-author-item"><a href="https://github.com/M-HALLIDAY" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;M-HALLIDAY" rel="noopener me" target="_blank"><i class="fab fa-github fa-fw"></i></a> </span><span class="links-of-author-item"><a href="mailto:halliday2023@163.com" title="E-Mail → mailto:halliday2023@163.com" rel="noopener me" target="_blank"><i class="fa fa-envelope fa-fw"></i></a> </span><span class="links-of-author-item"><a href="/atom.xml" title="RSS → &#x2F;atom.xml" rel="noopener me"><i class="fa fa-rss-square fa-fw"></i></a></span></div><div class="cc-license animated" itemprop="license"><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/zh-CN" class="cc-opacity" rel="noopener" target="_blank"><img src="https://cdnjs.cloudflare.com/ajax/libs/creativecommons-vocabulary/2020.11.3/assets/license_badges/small/by_nc_sa.svg" alt="Creative Commons"></a></div></div></div></div></aside></div><div class="main-inner post posts-expand"><div class="post-block"><article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN"><link itemprop="mainEntityOfPage" href="http://kiki.kim/2020/07/28/git%E7%9A%84%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%A4%84%E7%90%86/"><span hidden itemprop="author" itemscope itemtype="http://schema.org/Person"><meta itemprop="image" content="https://halliday.oss-cn-nanjing.aliyuncs.com/imagesbjx.png"><meta itemprop="name" content="小梦同学"></span><span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization"><meta itemprop="name" content="随言碎语"><meta itemprop="description" content="欲买桂花同载酒,终不似,少年游。"></span><span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork"><meta itemprop="name" content="git的常见问题处理 | 随言碎语"><meta itemprop="description" content=""></span><header class="post-header"><h1 class="post-title" itemprop="name headline">git的常见问题处理</h1><div class="post-meta-container"><div class="post-meta"><span class="post-meta-item"><span class="post-meta-item-icon"><i class="far fa-calendar"></i> </span><span class="post-meta-item-text">发表于</span> <time title="创建时间2020-07-28 23:56:55" itemprop="dateCreated datePublished" datetime="2020-07-28T23:56:55+08:00">2020-07-28</time> </span><span class="post-meta-item"><span class="post-meta-item-icon"><i class="far fa-calendar-check"></i> </span><span class="post-meta-item-text">更新于</span> <time title="修改时间2023-05-11 12:42:50" itemprop="dateModified" datetime="2023-05-11T12:42:50+08:00">2023-05-11</time> </span><span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv"><span class="post-meta-item-icon"><i class="far fa-eye"></i> </span><span class="post-meta-item-text">阅读次数:</span> <span id="busuanzi_value_page_pv"></span> </span><span class="post-meta-break"></span> <span class="post-meta-item" title="本文字数"><span class="post-meta-item-icon"><i class="far fa-file-word"></i> </span><span class="post-meta-item-text">本文字数:</span> <span>6.3k</span> </span><span class="post-meta-item" title="阅读时长"><span class="post-meta-item-icon"><i class="far fa-clock"></i> </span><span class="post-meta-item-text">阅读时长 &asymp;</span> <span>11 分钟</span></span></div></div></header><div class="post-body" itemprop="articleBody"><p>git的常见问题处理</p><span id="more"></span><h2 id="1-Git-Push-免输用户名和密码">1.Git Push 免输用户名和密码</h2><ol><li><p>进入<code>C:\users\用户名</code>目录,右击-<code>Git-Bas-Here</code></p></li><li><p>创建<code>.git-credentials</code>文件</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">vim .git-credentials</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">github的用户名和密码如果是其他平台改成对应的</span></span><br><span class="line">https://&#123;username&#125;:&#123;password&#125;@github.com</span><br><span class="line"></span><br></pre></td></tr></table></figure></li><li><p>添加Git Config 内容</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git config --global credential.helper store</span><br></pre></td></tr></table></figure></li><li><p>重新push可能还会让输入一次密码之后就不需要了</p></li></ol><h2 id="2-git配置用户">2. git配置用户</h2><ol><li><p>右击-<code>Git-Bas-Here</code></p></li><li><p>设置Git的user name和eamil</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git config --global user.name &quot;test1&quot;</span><br><span class="line">git config --global user.email &quot;test1@126.com&quot;</span><br></pre></td></tr></table></figure></li><li><p>生成SSH-KEY</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">ssh-keygen -t rsa -C &quot;test1@126.com&quot;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">Generating public/private rsa key pair.</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">这里会让输入key存储的位置和名称默认就是括号里面的可以直接回车</span></span><br><span class="line">Enter file in which to save the key (/c/Users/admin/.ssh/id_rsa): </span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">后面的都可以直接回车</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">默认会生成id_rsa和id_rsa.pub两个密钥文件</span></span><br></pre></td></tr></table></figure></li><li><p>登录到对应git平台添加SSH公钥即可把id_rsa.pub中的内容贴进去</p></li></ol><h2 id="3-git配置多用户">3.git配置多用户</h2><p>可能同时又多个平台分别用了不同的用户例如GitHub和Gitee分别使用了test1和test2两个用户。</p><ol><li><p>分别为两个用户生成SSH</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line">步骤和上面的一致,区别是再保存的时候分别给不同的名字</span><br><span class="line"></span><br><span class="line">Generating public/private rsa key pair.</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">github</span></span><br><span class="line">Enter file in which to save the key (/c/Users/admin/.ssh/id_rsa):/c/Users/admin/.ssh/github_id_rsa</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">gitee</span></span><br><span class="line">Enter file in which to save the key (/c/Users/admin/.ssh/id_rsa):/c/Users/admin/.ssh/gitee_id_rsa</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">默认会生成4个id_rsa和id_rsa.pub密钥文件</span></span><br></pre></td></tr></table></figure></li><li><p>修改config文件</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">vim /c/Users/admin/.ssh/config</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">gitee</span></span><br><span class="line">Host gitee.com</span><br><span class="line">HostName gitee.com</span><br><span class="line">PreferredAuthentications publickey</span><br><span class="line">IdentityFile ~/.ssh/gitee_id_rsa</span><br><span class="line"><span class="meta prompt_"> </span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">github</span></span><br><span class="line">Host github.com</span><br><span class="line">HostName github.com</span><br><span class="line">PreferredAuthentications publickey</span><br><span class="line">IdentityFile ~/.ssh/github_id_rsa</span><br></pre></td></tr></table></figure></li><li><p>到各自的页面上导入证书即可</p></li></ol><h2 id="4-Git-Bash终端中文输出显示乱码">4.Git Bash终端中文输出显示乱码</h2><p><img src="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195617845.png" alt="image-20230428195617845"></p><ol><li><p>在终端的空白处点击鼠标右键弹出的菜单中选择【options…】</p><p><img src="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195707324.png" alt="image-20230428195707324"></p></li><li><p>弹出的菜单中找到【Text】-&gt;【Local】下拉菜单中选择zh_CN</p><p><img src="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195738986.png" alt="image-20230428195738986"></p></li><li><p>在【Character set】下拉菜单中选择【utf-8】既是选择简体中文最后点击apply</p><p><img src="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195800339.png" alt="image-20230428195800339"></p></li><li><p>执行命令: git config --global core.quotepath false 执行命令git status显示结果如图所示</p><p><img src="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428195837683.png" alt="image-20230428195837683"></p></li><li><p>继续执行命令: git diff 仍然不能显示中文信息这是因为git bash显示的编码格式是utf-8而windows记事本的编码格式是gb2312请确认文本的格式是utf-8</p><p><img src="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428200205600.png" alt="image-20230428200205600"></p></li></ol><h2 id="5-windows-git-更改为unix模式换行符决解方法">5. windows git 更改为unix模式换行符决解方法</h2><p>Windows用CR LF来定义换行Linux用LF。可以设置git提交的时候进行统一的更改。</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">提交时转换为LF检出时转换为CRLF</span></span><br><span class="line">git config --global core.autocrlf true</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">提交时转换为LF检出时不转换</span></span><br><span class="line">git config --global core.autocrlf input</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">提交检出均不转换</span></span><br><span class="line">git config --global core.autocrlf false</span><br><span class="line">SafeCRLF</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">拒绝提交包含混合换行符的文件</span></span><br><span class="line">git config --global core.safecrlf true</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">允许提交包含混合换行符的文件</span></span><br><span class="line">git config --global core.safecrlf false</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">提交包含混合换行符的文件时给出警告</span></span><br><span class="line">git config --global core.safecrlf warn</span><br></pre></td></tr></table></figure><h2 id="6-git-log-的使用">6.git log 的使用</h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">1.列出所有最近两周内的提交</span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git <span class="built_in">log</span> --since=2.weeks</span></span><br><span class="line"> </span><br><span class="line">2.显示指定作者的提交</span><br><span class="line">git log --author</span><br><span class="line"></span><br><span class="line">3.仅显示简要的增改行数统计</span><br><span class="line">git log --stat </span><br><span class="line"></span><br><span class="line">4.展开显示每次提交的内容差异, 用 -2 则仅显示最近的两次更新</span><br><span class="line">git log -p -2</span><br></pre></td></tr></table></figure><h2 id="7-git-tag-以及发布-release">7.git tag 以及发布 release</h2><ol><li><p>查看提交过的commit命令git log</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">[root@~]# </span><span class="language-bash">git <span class="built_in">log</span></span></span><br><span class="line"></span><br><span class="line">commitc98c186ebb381005b495f6f1f2a65dc72195ad9d ---这个就是最近一次提交的</span><br><span class="line"></span><br><span class="line">Author:Yongshi Xu &lt;yongshi.xu@samsung.com&gt;</span><br><span class="line"></span><br><span class="line">Date: Wed Aug 31 15:24:26 2016 +0800</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">basicsecurity(credential) - user:password</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">commit0c2ac2f09edc41111d451043961a657f750651c6</span><br><span class="line"></span><br><span class="line">Author:Yongshi Xu &lt;yongshi.xu@samsung.com&gt;</span><br><span class="line"></span><br><span class="line">Date: Tue Aug 30 18:08:18 2016 +0800</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">deletethe duplicated harbor/auth codes</span><br></pre></td></tr></table></figure></li><li><p>在最后一次commit上 打标签</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git tag -a &quot;v0.2&quot; c98c186ebb381005b495f6f1f2a65dc72195ad9d -m &#x27;v0.2&#x27;</span><br></pre></td></tr></table></figure></li><li><p>上传</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git push origin v0.2</span><br></pre></td></tr></table></figure></li><li><p>发布 release</p><p>先对对应的 commit 绑定 tag按照图片中按钮生成一个 release选定 tag填写 description 然后 publish 即可</p><p><img src="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428202514875.png" alt="image-20230428202514875"></p></li></ol><p><img src="https://halliday.oss-cn-nanjing.aliyuncs.com/image-20230428202629280.png" alt="image-20230428202629280"></p><h2 id="8-git用本地仓库恢复远程仓库">8. git用本地仓库恢复远程仓库</h2><p>远程仓库被删除了本地还有之前clone仓库可以用这个来恢复远程被删除的仓库</p><ol><li><p>现在远程仓库中创建一个新的仓库</p></li><li><p>进入到本地仓库的目录打开git-bash</p></li><li><p>将之前的连接先清除掉</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查看当前的连接情况</span></span><br><span class="line">zmr@DESKTOP-KLMBVGR MINGW64 /e/git-code/hexo-next-blog (master)</span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git remote -v</span></span><br><span class="line">origin http://10.1.100.4:3000/ha/hexo-next-blog.git (fetch)</span><br><span class="line">origin http://10.1.100.4:3000/ha/hexo-next-blog.git (push)</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">移除连接</span></span><br><span class="line">zmr@DESKTOP-KLMBVGR MINGW64 /e/git-code/hexo-next-blog (master)</span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git remote <span class="built_in">rm</span> origin</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">确认已经移除了</span></span><br><span class="line">zmr@DESKTOP-KLMBVGR MINGW64 /e/git-code/hexo-next-blog (master)</span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git remote -v</span></span><br><span class="line"></span><br></pre></td></tr></table></figure></li><li><p>重新建立连接</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">zmr@DESKTOP-KLMBVGR MINGW64 /e/git-code/hexo-next-blog (master)</span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git remote add origin https://10.1.100.4:3000/ha/hexo-blog.git</span></span><br></pre></td></tr></table></figure></li><li><p>强制push上去</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">zmr@DESKTOP-KLMBVGR MINGW64 /e/git-code/hexo-next-blog (master)</span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git push origin master --force</span></span><br><span class="line">warning: ----------------- SECURITY WARNING ----------------</span><br><span class="line">warning: | TLS certificate verification has been disabled! |</span><br><span class="line">warning: ---------------------------------------------------</span><br><span class="line">Compressing objects: 100% (542/542), done.</span><br><span class="line">Writing objects: 100% (629/629), 907.51 KiB | 69.81 MiB/s, done.</span><br><span class="line">Total 629 (delta 56), reused 629 (delta 56), pack-reused 0</span><br><span class="line">remote: Resolving deltas: 100% (56/56), done.</span><br><span class="line">remote: . Processing 1 references</span><br><span class="line">remote: Processed 1 references in total</span><br><span class="line">To https://10.1.100.4:3000/ha/hexo-blog.git</span><br><span class="line"> + 9bfca65...7545eac master -&gt; master (forced update)</span><br></pre></td></tr></table></figure></li><li><p>去远程仓库确认已经恢复了,并且之前的提交记录都是在的</p></li></ol><h2 id="9-git-pull出错">9.git pull出错</h2><p>错误信息:</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">λ git pull </span><br><span class="line">warning: ----------------- SECURITY WARNING ---------------- </span><br><span class="line">warning: | TLS certificate verification has been disabled! | </span><br><span class="line">warning: --------------------------------------------------- </span><br><span class="line">warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more i</span><br><span class="line">nformation. </span><br><span class="line">warning: ----------------- SECURITY WARNING ---------------- </span><br><span class="line">warning: | TLS certificate verification has been disabled! | </span><br><span class="line">warning: --------------------------------------------------- </span><br><span class="line">warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more i</span><br><span class="line">nformation. </span><br><span class="line">There is no tracking information for the current branch. </span><br><span class="line">Please specify which branch you want to merge with. </span><br><span class="line">See git-pull(1) for details. </span><br><span class="line"> </span><br><span class="line"> git pull &lt;remote&gt; &lt;branch&gt; </span><br><span class="line"> </span><br><span class="line">If you wish to set tracking information for this branch you can do so with: </span><br><span class="line"> </span><br><span class="line"> git branch --set-upstream-to=origin/&lt;branch&gt; master </span><br></pre></td></tr></table></figure><p>原因可能是移动了本地仓库的目录,需要更新一下信息</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">先确认一下当前仓库的连接地址是否还在</span></span><br><span class="line">E:\git-code\hexo-next-blog (master) </span><br><span class="line">λ git remote -v </span><br><span class="line">origin https://gitea.kiki.kim/ha/hexo-blog.git (fetch) </span><br><span class="line">origin https://gitea.kiki.kim/ha/hexo-blog.git (push) </span><br><span class="line"><span class="meta prompt_"> </span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">更新一下</span></span><br><span class="line">E:\git-code\hexo-next-blog (master)</span><br><span class="line">λ git push -u origin master</span><br><span class="line">warning: ----------------- SECURITY WARNING ----------------</span><br><span class="line">warning: | TLS certificate verification has been disabled! |</span><br><span class="line">warning: ---------------------------------------------------</span><br><span class="line">warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.</span><br><span class="line">warning: ----------------- SECURITY WARNING ----------------</span><br><span class="line">warning: | TLS certificate verification has been disabled! |</span><br><span class="line">warning: ---------------------------------------------------</span><br><span class="line">warning: HTTPS connections may not be secure. See https://aka.ms/gcmcore-tlsverify for more information.</span><br><span class="line">Everything up-to-date</span><br><span class="line">Branch &#x27;master&#x27; set up to track remote branch &#x27;master&#x27; from &#x27;origin&#x27;.</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">再次pull测试是否可以</span></span><br></pre></td></tr></table></figure><h2 id="10-一次性提交的文件大小超过限制,导致提交失败">10. 一次性提交的文件大小超过限制,导致提交失败</h2><p>报错信息:</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413</span><br></pre></td></tr></table></figure><p>原因:</p><p>因为 Nginx 的 client_max_body_size 默认大小只有 1M一次性提交的文件大小超过了限制</p><p>处理方法修改nginx的配置即可</p><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">client_max_body_size 128m;</span></span><br><span class="line"></span><br><span class="line"> location /&#123;</span><br><span class="line"> client_max_body_size 128m; ---这里增加配置项</span><br><span class="line"> proxy_redirect off;</span><br><span class="line"> proxy_set_header Host $host;</span><br><span class="line"> proxy_set_header X-Real-IP $remote_addr;</span><br><span class="line"> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</span><br><span class="line"> proxy_pass http://10.1.100.4:3000;</span><br><span class="line"> &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line">重启nginx</span><br><span class="line"></span><br></pre></td></tr></table></figure></div><footer class="post-footer"><div><div style="text-align:center;color:#ccc;font-size:24px;padding-top:10px">----- The End -----</div><div><center><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/css/share.min.css"><div class="social-share" data-sites="weibo, qq, qzone,wechat"></div><script src="http://apps.bdimg.com/libs/jquery/1.8.2/jquery.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/js/social-share.min.js"></script></center></div></div><div class="post-copyright"><ul><li class="post-copyright-author"><strong>本文作者: </strong>小梦同学</li><li class="post-copyright-link"><strong>本文链接:</strong> <a href="http://kiki.kim/2020/07/28/git%E7%9A%84%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%A4%84%E7%90%86/" title="git的常见问题处理">http://kiki.kim/2020/07/28/git的常见问题处理/</a></li><li class="post-copyright-license"><strong>版权声明: </strong>本博客所有文章除特别声明外,均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/zh-CN" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处!</li></ul></div><div class="post-tags"><a href="/tags/git/" rel="tag"><i class="fa fa-tag"></i> git</a></div><script type="text/javascript">for(var tagsall=document.getElementsByClassName("post-tags"),i=tagsall.length-1;0<=i;i--)for(var tags=tagsall[i].getElementsByTagName("a"),j=tags.length-1;0<=j;j--){var r,g,b,golden_ratio=.618033988749895,s=.5,v=.999,h=golden_ratio+.8*Math.random()-.5,h_i=parseInt(6*h),f=6*h-h_i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s);switch(h_i){case 0:r=v,g=t,b=p;break;case 1:r=q,g=v,b=p;break;case 2:r=p,g=v,b=t;break;case 3:r=p,g=q,b=v;break;case 4:r=t,g=p,b=v;break;case 5:r=v,g=p,b=q;break;default:b=g=r=1}tags[j].style.background="rgba("+parseInt(255*r)+","+parseInt(255*g)+","+parseInt(255*b)+",0.5)"}</script><div class="post-nav"><div class="post-nav-item"><a href="/2020/06/09/yum%E6%BA%90%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E5%9B%BD%E5%86%85%E6%BA%90/" rel="prev" title="yum源如何使用国内源"><i class="fa fa-chevron-left"></i> yum源如何使用国内源</a></div><div class="post-nav-item"><a href="/2020/09/23/%E8%A7%A3%E5%86%B3linux%E7%9A%84%E5%BC%80%E6%9C%BA%E5%90%AF%E5%8A%A8%E4%B8%8D%E7%94%9F%E6%95%88/" rel="next" title="解决linux的开机启动不生效">解决linux的开机启动不生效 <i class="fa fa-chevron-right"></i></a></div></div></footer></article></div></div></main><footer class="footer"><div class="footer-inner"><div class="copyright">&copy; <span itemprop="copyrightYear">2023</span> <span class="with-love"><i class="fa fa-heart"></i> </span><span class="author" itemprop="copyrightHolder">小梦同学</span></div><div class="beian"><img src="/images/beian.png" alt=""><a href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=32132302010292" rel="noopener" target="_blank">苏公网安备 32132302010292号 </a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://beian.miit.gov.cn/" rel="noopener" target="_blank">苏ICP备2021047152号-1</a></div><div class="busuanzi-count"><span class="post-meta-item" id="busuanzi_container_site_uv"><span class="post-meta-item-icon"><i class="fa fa-user"></i> </span><span class="site-uv" title="总访客量"><span id="busuanzi_value_site_uv"></span> </span></span><span class="post-meta-item" id="busuanzi_container_site_pv"><span class="post-meta-item-icon"><i class="fa fa-eye"></i> </span><span class="site-pv" title="总访问量"><span id="busuanzi_value_site_pv"></span></span></span></div><div class="powered-by"><a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动</div><span id="timeDate">载入天数...</span> <span id="times">载入时分秒...</span><script>var now=new Date;function createtime(){var n=new Date("03/01/2023 10:00:00");now.setTime(now.getTime()+250),days=(now-n)/1e3/60/60/24,dnum=Math.floor(days),hours=(now-n)/1e3/60/60-24*dnum,hnum=Math.floor(hours),1==String(hnum).length&&(hnum="0"+hnum),minutes=(now-n)/1e3/60-1440*dnum-60*hnum,mnum=Math.floor(minutes),1==String(mnum).length&&(mnum="0"+mnum),seconds=(now-n)/1e3-86400*dnum-3600*hnum-60*mnum,snum=Math.round(seconds),1==String(snum).length&&(snum="0"+snum),document.getElementById("timeDate").innerHTML="本站已安全运行 "+dnum+" 天 ",document.getElementById("times").innerHTML=hnum+" 小时 "+mnum+" 分 "+snum+" 秒."}setInterval("createtime()",250)</script></div></footer><div class="back-to-top" role="button" aria-label="返回顶部"><i class="fa fa-arrow-up fa-lg"></i> <span>0%</span></div><div class="reading-progress-bar"></div><a href="https://github.com/M-HALLIDAY" class="github-corner" title="在 GitHub 上关注我" aria-label="在 GitHub 上关注我" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin:130px 106px" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><noscript><div class="noscript-warning">Theme NexT works best with JavaScript enabled</div></noscript><script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js" integrity="sha256-yt2kYMy0w8AbtF89WXb2P1rfjcP/HTHLT7097U8Y5b8=" crossorigin="anonymous"></script><script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/next-boot.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/hexo-generator-searchdb/1.4.1/search.js" integrity="sha256-1kfA5uHPf65M5cphT2dvymhkuyHPQp5A53EGZOnOLmc=" crossorigin="anonymous"></script><script src="/js/third-party/search/local-search.js"></script><script src="/js/third-party/fancybox.js"></script><script src="/js/third-party/pace.js"></script><script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><script src="https://unpkg.com/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script><script>var options = {
bottom: '64px',
right: 'unset',
left: '32px',
time: '0.5s',
mixColor: 'transparent',
backgroundColor: 'transparent',
buttonColorDark: '#100f2c',
buttonColorLight: '#fff',
saveInCookies: true,
label: '🌓',
autoMatchOsTheme: true
}
const darkmode = new Darkmode(options);
window.darkmode = darkmode;
darkmode.showWidget();</script><script async src="/js/cursor/love.min.js"></script><script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js"></script></body></html>