<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>iflyelf</title><link>https://www.iflyelf.com/</link><description>iflyelf</description><generator>Hugo 0.168.0 &amp; FixIt v1.0.0-beta.4</generator><language>zh-CN</language><managingEditor>iflyelf@gmail.com (小诺)</managingEditor><webMaster>iflyelf@gmail.com (小诺)</webMaster><copyright>本站内容采用 CC BY-NC-SA 4.0 国际许可协议。</copyright><lastBuildDate>Tue, 20 Oct 2026 23:00:00 +0800</lastBuildDate><atom:link href="https://www.iflyelf.com/index.xml" rel="self" type="application/rss+xml"/><item><title>山路很长，风景也在路上</title><link>https://www.iflyelf.com/posts/shanlu-hen-chang/</link><pubDate>Tue, 20 Oct 2026 22:17:00 +0800</pubDate><author>iflyelf@gmail.com (小诺)</author><guid>https://www.iflyelf.com/posts/shanlu-hen-chang/</guid><category domain="https://www.iflyelf.com/categories/%E7%88%B1%E9%9F%B3%E4%B9%90%E7%88%B1%E7%94%9F%E6%B4%BB/">爱音乐爱生活</category><description>&lt;img src="https://acg.iflyelf.com/life?w=1200&amp;h=504" alt="featured image" referrerpolicy="no-referrer"&gt;&lt;p&gt;凌晨一点多，屏幕还亮着。&lt;/p&gt;&#10;&lt;p&gt;代码改了一遍又一遍。运行，报错，再改。键盘声一下一下，像雨点落在窗台上。&lt;/p&gt;&#10;&lt;p&gt;眼睛酸了，就停一停。改不动的时候，就听一会儿歌，让自己放空。音乐响起来，屋子安静下来，那些缠成一团的逻辑暂时退到远处。&lt;/p&gt;&#10;&lt;p&gt;然后，接着改。&lt;/p&gt;&#10;&lt;p&gt;这样的夜晚，没有掌声，也没有人看见。可成长大概就藏在这些没人看见的时刻里。&lt;/p&gt;&#10;&lt;p&gt;你以为自己在跟一段逻辑较劲，其实是在跟那个一遇到难处就想退的自己较劲。&lt;/p&gt;&#10;&lt;p&gt;努力这件事，很少是热血的。更多时候，它只是把同一件事做了一遍又一遍，把同一个错误改了一次又一次。改到后来，连自己都说不清，是在跟问题较劲，还是在跟那点不甘心较劲。&lt;/p&gt;&#10;&lt;p&gt;也会有撑不住的时候。盯着屏幕，脑子一片空白，会突然怀疑自己是不是根本不适合。可第二天，还是会坐下来，把没看懂的地方再看一遍。&lt;/p&gt;&#10;&lt;p&gt;有些报错没有提示，就像有些成长没有掌声。&lt;/p&gt;&#10;&lt;p&gt;有时问题不在代码里，在你绕不出来的那个念头里。退一步，换个角度，答案也许就露出来了。&lt;/p&gt;&#10;&lt;p&gt;真正让人往前走的，往往是那些一开始不会做的事。会怕，会犹豫，会想绕开。可有些路，绕过去了，就永远不知道自己能走到哪里。&lt;/p&gt;&#10;&lt;p&gt;「不会」两个字，不是句号，是还没翻过去的一页。&lt;/p&gt;&#10;&lt;p&gt;人不能一直绷着。弦拉得太紧会断，路赶得太急会忘。&lt;/p&gt;&#10;&lt;p&gt;累了，就停下来。看看窗外，看看远处还亮着的灯，看看夜色一点点变淡，看风把云推向不知名的地方。&lt;/p&gt;&#10;&lt;p&gt;听听歌，发一会儿呆。那不是偷懒，只是让自己喘口气。&lt;/p&gt;&#10;&lt;p&gt;累的时候，允许自己做一条绕路的河。绕一点，也是在往前走。&lt;/p&gt;&#10;&lt;p&gt;不用一路都勇敢，也不用每一步都算数。向亮处走，把夜走短；向远处走，把路走宽。&lt;/p&gt;&#10;&lt;p&gt;耳机里响起《时光机》的时候，夜色正浓。&lt;/p&gt;&#10;&lt;p&gt;歌里唱的是想回到过去。听着听着，会想起从前那个笨拙的自己：什么都不懂，一个简单的问题能卡很久，却还是认真地一遍遍试。&lt;/p&gt;&#10;&lt;p&gt;如果真能回去，想对他说一句：别急，你后来会懂的。&lt;/p&gt;&#10;&lt;p&gt;可我们没有时光机。我们只有记忆，和此刻。&lt;/p&gt;&#10;&lt;p&gt;记忆像一条旧路，走回去，还能看见当年歪歪扭扭的脚印。&lt;/p&gt;&#10;&lt;p&gt;回望不是往回走，是把来时的路看清楚，然后继续往前。&lt;/p&gt;&#10;&lt;p&gt;回头看一眼可以，别把来路走成归途。&lt;/p&gt;&#10;&lt;p&gt;天总会亮的。&lt;/p&gt;&#10;&lt;p&gt;那些一个人对着屏幕的夜晚，那些一遍遍重来的耐心，都会留下点什么。&lt;/p&gt;&#10;&lt;p&gt;你所有经历的，都将成为你的宝贵的财富。&lt;/p&gt;&#10;&lt;p&gt;天亮不是等来的，是一行一行敲出来的。&lt;/p&gt;&#10;&lt;p&gt;向亮处走，把夜走短。&lt;/p&gt;&#10;</description></item><item><title>我最喜欢的歌曲</title><link>https://www.iflyelf.com/posts/me-like-music/</link><pubDate>Tue, 20 Oct 2026 08:00:00 +0800</pubDate><author>iflyelf@gmail.com (小诺)</author><guid>https://www.iflyelf.com/posts/me-like-music/</guid><category domain="https://www.iflyelf.com/categories/%E7%88%B1%E9%9F%B3%E4%B9%90%E7%88%B1%E7%94%9F%E6%B4%BB/">爱音乐爱生活</category><description>&lt;img src="https://acg.iflyelf.com/music?w=1200&amp;h=504" alt="featured image" referrerpolicy="no-referrer"&gt;&lt;script&gt;window.meting_api = "https://api.injahow.cn/meting/?server=:server&amp;type=:type&amp;id=:id&amp;r=:r";&lt;/script&gt;&#10;&lt;meting-js auto="https://music.163.com/#/playlist?id=2708344909" theme="#448aff"&gt;&lt;/meting-js&gt;&#10;</description></item><item><title>多功能加速代理 - Cloudflare Workers</title><link>https://www.iflyelf.com/posts/proxy_cf/</link><pubDate>Tue, 20 Oct 2026 16:40:31 +0800</pubDate><author>iflyelf@gmail.com (小诺)</author><guid>https://www.iflyelf.com/posts/proxy_cf/</guid><category domain="https://www.iflyelf.com/categories/%E7%88%B1%E8%AE%B0%E5%BD%95%E7%88%B1%E6%95%B4%E7%90%86/">爱记录爱整理</category><description>&lt;img src="https://acg.iflyelf.com/proxy_cf?w=1200&amp;h=504" alt="featured image" referrerpolicy="no-referrer"&gt;&lt;p&gt;一个基于 Cloudflare Workers 的多功能加速代理，支持 GitHub、Docker、SourceForge、Google Sheets 等资源的加速访问。只需要一个域名和一个 Worker，就能把这些常用资源全部代理起来。&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="项目简介"&gt;&lt;span&gt;项目简介&lt;/span&gt;&#10; &lt;a href="#%e9%a1%b9%e7%9b%ae%e7%ae%80%e4%bb%8b" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;在线演示：&lt;a href="https://proxy.xiaonuo.live" target="_blank" rel="external nofollow noopener noreferrer"&gt;https://proxy.xiaonuo.live&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;项目地址：&lt;a href="https://github.com/iflyelf/proxy-cf" target="_blank" rel="external nofollow noopener noreferrer"&gt;https://github.com/iflyelf/proxy-cf&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;早期的 &lt;a href="https://github.com/iflyelf/cloudflare-docker-proxy" target="_blank" rel="external nofollow noopener noreferrer"&gt;cloudflare-docker-proxy&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt; 只能代理 Docker 镜像，而且每个镜像仓库都要单独配置一个子域名。现在的 &lt;code&gt;proxy-cf&lt;/code&gt; 做了整合：&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;单域名&lt;/strong&gt;：所有容器注册表通过路径前缀区分，不用再为每个仓库配置子域名&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;多功能&lt;/strong&gt;：GitHub、Docker、SourceForge、Google Sheets、普通直链一并支持&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;零成本&lt;/strong&gt;：运行在 Cloudflare Workers 免费额度内，无需服务器&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;可视化&lt;/strong&gt;：主页自带加速链接和 Git Clone 命令生成器&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 class="heading-element" id="功能特性"&gt;&lt;span&gt;功能特性&lt;/span&gt;&#10; &lt;a href="#%e5%8a%9f%e8%83%bd%e7%89%b9%e6%80%a7" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="github-加速"&gt;&lt;span&gt;GitHub 加速&lt;/span&gt;&#10; &lt;a href="#github-%e5%8a%a0%e9%80%9f" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;ul&gt;&#10;&lt;li&gt;Raw 文件加速&lt;/li&gt;&#10;&lt;li&gt;Release 下载加速&lt;/li&gt;&#10;&lt;li&gt;仓库源码包（Archive）下载加速&lt;/li&gt;&#10;&lt;li&gt;Git Clone、Pull、Fetch 等完整 Git 操作&lt;/li&gt;&#10;&lt;li&gt;完整的 CORS 支持&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h3 class="heading-element" id="docker-镜像加速"&gt;&lt;span&gt;Docker 镜像加速&lt;/span&gt;&#10; &lt;a href="#docker-%e9%95%9c%e5%83%8f%e5%8a%a0%e9%80%9f" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;支持主流容器注册表，通过路径前缀访问：&lt;/p&gt;&#10;&lt;div class="table-wrapper"&gt;&#10; &lt;table data-sortable&gt;&lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th&gt;注册表&lt;/th&gt;&#10; &lt;th&gt;路径前缀&lt;/th&gt;&#10; &lt;th&gt;拉取示例&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Docker Hub&lt;/td&gt;&#10; &lt;td&gt;默认（无需前缀）&lt;/td&gt;&#10; &lt;td&gt;配置 &lt;code&gt;registry-mirrors&lt;/code&gt; 后 &lt;code&gt;docker pull nginx:alpine&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;GitHub Packages&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;/ghcr.io&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;docker pull proxy.xiaonuo.live/ghcr.io/owner/image:tag&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Google GCR&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;/gcr.io&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;docker pull proxy.xiaonuo.live/gcr.io/project/image:tag&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Kubernetes&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;/registry.k8s.io&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;docker pull proxy.xiaonuo.live/registry.k8s.io/pause:3.9&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Kubernetes（旧）&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;/k8s.gcr.io&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;docker pull proxy.xiaonuo.live/k8s.gcr.io/pause:3.5&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Red Hat Quay&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;/quay.io&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;docker pull proxy.xiaonuo.live/quay.io/prometheus/node-exporter:latest&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Microsoft MCR&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;/mcr.microsoft.com&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;docker pull proxy.xiaonuo.live/mcr.microsoft.com/dotnet/runtime:7.0-alpine&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;NVIDIA NGC&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;/nvcr.io&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;docker pull proxy.xiaonuo.live/nvcr.io/nvidia/cuda:11.8.0-base-ubuntu22.04&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;AWS ECR Public&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;/public.ecr.aws&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;docker pull proxy.xiaonuo.live/public.ecr.aws/amazonlinux/amazonlinux:latest&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Cloudsmith&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;/docker.cloudsmith.io&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;docker pull proxy.xiaonuo.live/docker.cloudsmith.io/org/repo/image:tag&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10; &lt;/table&gt;&#10;&lt;/div&gt;&lt;p&gt;特性：&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;完整的 Docker Registry API v2 支持&lt;/li&gt;&#10;&lt;li&gt;自动重写认证头 &lt;code&gt;WWW-Authenticate&lt;/code&gt; 和重定向地址 &lt;code&gt;Location&lt;/code&gt;，避免连接被重置&lt;/li&gt;&#10;&lt;li&gt;支持多架构镜像&lt;/li&gt;&#10;&lt;li&gt;单域名访问所有注册表&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h3 class="heading-element" id="其他功能"&gt;&lt;span&gt;其他功能&lt;/span&gt;&#10; &lt;a href="#%e5%85%b6%e4%bb%96%e5%8a%9f%e8%83%bd" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;SourceForge 加速&lt;/strong&gt;：文件下载加速&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Google Sheets 代理&lt;/strong&gt;：无需 API Key 读取表格数据&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;直链下载加速&lt;/strong&gt;：任意 HTTP/HTTPS 文件，支持 Range 断点续传&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 class="heading-element" id="准备工作"&gt;&lt;span&gt;准备工作&lt;/span&gt;&#10; &lt;a href="#%e5%87%86%e5%a4%87%e5%b7%a5%e4%bd%9c" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;一个域名，推荐在 &lt;a href="https://www.namesilo.com" target="_blank" rel="external nofollow noopener noreferrer"&gt;namesilo&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt; 注册&lt;/li&gt;&#10;&lt;li&gt;一个 &lt;a href="https://www.cloudflare.com" target="_blank" rel="external nofollow noopener noreferrer"&gt;Cloudflare&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt; 账号，域名需托管在 Cloudflare&lt;/li&gt;&#10;&lt;li&gt;（可选）&lt;a href="https://github.com" target="_blank" rel="external nofollow noopener noreferrer"&gt;GitHub&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt; 账号，用于 Fork 项目&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 class="heading-element" id="部署"&gt;&lt;span&gt;部署&lt;/span&gt;&#10; &lt;a href="#%e9%83%a8%e7%bd%b2" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="cloudflare-dashboard-部署推荐"&gt;&lt;span&gt;Cloudflare Dashboard 部署（推荐）&lt;/span&gt;&#10; &lt;a href="#cloudflare-dashboard-%e9%83%a8%e7%bd%b2%e6%8e%a8%e8%8d%90" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;ol&gt;&#10;&lt;li&gt;登录 &lt;a href="https://dash.cloudflare.com/" target="_blank" rel="external nofollow noopener noreferrer"&gt;Cloudflare Dashboard&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;&#10;&lt;li&gt;进入 &lt;strong&gt;Workers &amp;amp; Pages&lt;/strong&gt; → &lt;strong&gt;Create Application&lt;/strong&gt; → &lt;strong&gt;Create Worker&lt;/strong&gt;&lt;/li&gt;&#10;&lt;li&gt;点击 &lt;strong&gt;Edit Code&lt;/strong&gt;，删除默认代码&lt;/li&gt;&#10;&lt;li&gt;复制 &lt;a href="https://github.com/iflyelf/proxy-cf/blob/main/worker.js" target="_blank" rel="external nofollow noopener noreferrer"&gt;worker.js&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt; 的全部内容，粘贴到编辑器&lt;/li&gt;&#10;&lt;li&gt;修改 &lt;code&gt;CONFIG&lt;/code&gt; 中的域名为自己的域名：&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;pre&gt;&lt;code&gt;const CONFIG = {&#10; domain: &amp;#39;proxy.xiaonuo.live&amp;#39;, // 改为你的域名&#10;&#10; // Docker 镜像仓库路径前缀映射&#10; dockerRegistries: {&#10; &amp;#39;docker.io&amp;#39;: &amp;#39;https://docker.1panel.live&amp;#39;,&#10; &amp;#39;registry-1.docker.io&amp;#39;: &amp;#39;https://docker.1panel.live&amp;#39;,&#10; &amp;#39;ghcr.io&amp;#39;: &amp;#39;https://ghcr.io&amp;#39;,&#10; &amp;#39;gcr.io&amp;#39;: &amp;#39;https://gcr.io&amp;#39;,&#10; &amp;#39;k8s.gcr.io&amp;#39;: &amp;#39;https://k8s.gcr.io&amp;#39;,&#10; &amp;#39;registry.k8s.io&amp;#39;: &amp;#39;https://registry.k8s.io&amp;#39;,&#10; &amp;#39;quay.io&amp;#39;: &amp;#39;https://quay.io&amp;#39;,&#10; &amp;#39;mcr.microsoft.com&amp;#39;: &amp;#39;https://mcr.microsoft.com&amp;#39;,&#10; &amp;#39;nvcr.io&amp;#39;: &amp;#39;https://nvcr.io&amp;#39;,&#10; &amp;#39;public.ecr.aws&amp;#39;: &amp;#39;https://public.ecr.aws&amp;#39;,&#10; &amp;#39;docker.cloudsmith.io&amp;#39;: &amp;#39;https://docker.cloudsmith.io&amp;#39;,&#10; },&#10;&#10; // 默认 Docker Hub 上游&#10; defaultDockerUpstream: &amp;#39;https://docker.1panel.live&amp;#39;,&#10;};&lt;/code&gt;&lt;/pre&gt;&lt;ol start="6"&gt;&#10;&lt;li&gt;点击 &lt;strong&gt;Save and Deploy&lt;/strong&gt;&lt;/li&gt;&#10;&lt;li&gt;绑定自定义域名：&lt;strong&gt;Settings&lt;/strong&gt; → &lt;strong&gt;Triggers&lt;/strong&gt; → &lt;strong&gt;Add Custom Domain&lt;/strong&gt;，输入自己的域名（如 &lt;code&gt;proxy.example.com&lt;/code&gt;）&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;提示：&lt;code&gt;worker.js&lt;/code&gt; 文件较大（约 69KB），请确保完整复制。建议直接使用 Dashboard 的代码编辑器粘贴部署。&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h3 class="heading-element" id="修改配置"&gt;&lt;span&gt;修改配置&lt;/span&gt;&#10; &lt;a href="#%e4%bf%ae%e6%94%b9%e9%85%8d%e7%bd%ae" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;部署完成后，主要改两个地方：&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;domain&lt;/code&gt;：改成自己的自定义域名，主页展示的示例链接会同步更新&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;dockerRegistries&lt;/code&gt;：按需增删容器注册表。比如想换一个 Docker Hub 上游，修改 &lt;code&gt;docker.io&lt;/code&gt; 和 &lt;code&gt;defaultDockerUpstream&lt;/code&gt; 即可&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 class="heading-element" id="使用说明"&gt;&lt;span&gt;使用说明&lt;/span&gt;&#10; &lt;a href="#%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="github-文件加速"&gt;&lt;span&gt;GitHub 文件加速&lt;/span&gt;&#10; &lt;a href="#github-%e6%96%87%e4%bb%b6%e5%8a%a0%e9%80%9f" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;推荐使用 URL 参数格式，兼容性最好：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;# Raw 文件&#10;# 原地址&#10;https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md&#10;&#10;# 加速地址&#10;https://proxy.xiaonuo.live/proxy?url=https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md&#10;&#10;# Release 下载&#10;# 原地址&#10;https://github.com/junegunn/fzf/releases/download/v0.54.0/fzf-0.54.0-linux_amd64.tar.gz&#10;&#10;# 加速地址&#10;https://proxy.xiaonuo.live/proxy?url=https://github.com/junegunn/fzf/releases/download/v0.54.0/fzf-0.54.0-linux_amd64.tar.gz&#10;&#10;# 仓库源码包&#10;https://proxy.xiaonuo.live/proxy?url=https://github.com/golang/go/archive/refs/tags/go1.21.0.tar.gz&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;也可以直接把原始 URL 拼在域名后面（部分环境可能被 Cloudflare 阻止，不推荐）：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;https://proxy.xiaonuo.live/https://raw.githubusercontent.com/username/repo/main/file.txt&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;主页还提供了在线生成器，输入原始链接即可得到加速地址。&lt;/p&gt;&#10;&lt;h3 class="heading-element" id="git-clone-加速"&gt;&lt;span&gt;Git Clone 加速&lt;/span&gt;&#10; &lt;a href="#git-clone-%e5%8a%a0%e9%80%9f" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;方式一：单次克隆，无需配置&lt;/strong&gt;&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;git clone https://proxy.xiaonuo.live/proxy?url=https://github.com/torvalds/linux.git&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;方式二：全局配置（推荐，所有仓库自动生效）&lt;/strong&gt;&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;# 配置代理&#10;git config --global url.&amp;#34;https://proxy.xiaonuo.live/proxy?url=https://github.com/&amp;#34;.insteadOf &amp;#34;https://github.com/&amp;#34;&#10;&#10;# 验证配置&#10;git config --get-regexp url&#10;&#10;# 之后正常的 clone、pull、fetch 都会自动走代理&#10;git clone https://github.com/kubernetes/kubernetes.git&#10;git pull&#10;git fetch&#10;&#10;# 取消配置&#10;git config --global --unset url.&amp;#34;https://proxy.xiaonuo.live/proxy?url=https://github.com/&amp;#34;.insteadOf&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;方式三：仅对当前仓库生效&lt;/strong&gt;&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;cd your-repo&#10;git config url.&amp;#34;https://proxy.xiaonuo.live/proxy?url=https://github.com/&amp;#34;.insteadOf &amp;#34;https://github.com/&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;支持 &lt;code&gt;clone&lt;/code&gt;、&lt;code&gt;pull&lt;/code&gt;、&lt;code&gt;fetch&lt;/code&gt; 等所有 Git 操作，包括 &lt;code&gt;/info/refs&lt;/code&gt;、&lt;code&gt;/git-upload-pack&lt;/code&gt; 等协议端点。&lt;/p&gt;&#10;&lt;h3 class="heading-element" id="docker-hub-镜像加速"&gt;&lt;span&gt;Docker Hub 镜像加速&lt;/span&gt;&#10; &lt;a href="#docker-hub-%e9%95%9c%e5%83%8f%e5%8a%a0%e9%80%9f" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;编辑 &lt;code&gt;/etc/docker/daemon.json&lt;/code&gt;：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;{&#10; &amp;#34;registry-mirrors&amp;#34;: [&amp;#34;https://proxy.xiaonuo.live&amp;#34;]&#10;}&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;重启 Docker：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo systemctl restart docker&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;然后正常拉取镜像即可：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;docker pull nginx:alpine&#10;docker pull mysql:8.0&lt;/code&gt;&lt;/pre&gt;&lt;blockquote&gt;&#10;&lt;p&gt;Docker Hub 的请求会转发到 &lt;code&gt;docker.1panel.live&lt;/code&gt; 上游。如果该上游不可用，修改 &lt;code&gt;CONFIG.dockerRegistries['docker.io']&lt;/code&gt; 和 &lt;code&gt;defaultDockerUpstream&lt;/code&gt; 即可。&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h3 class="heading-element" id="其他容器注册表"&gt;&lt;span&gt;其他容器注册表&lt;/span&gt;&#10; &lt;a href="#%e5%85%b6%e4%bb%96%e5%ae%b9%e5%99%a8%e6%b3%a8%e5%86%8c%e8%a1%a8" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;通过路径前缀访问，Docker 会自动补上 &lt;code&gt;/v2&lt;/code&gt;，所以直接按下面的格式拉取：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;# Google GCR（公开镜像）&#10;docker pull proxy.xiaonuo.live/gcr.io/google-containers/pause:3.2&#10;&#10;# Kubernetes（公开镜像）&#10;docker pull proxy.xiaonuo.live/registry.k8s.io/pause:3.9&#10;docker pull proxy.xiaonuo.live/k8s.gcr.io/pause:3.5&#10;&#10;# Quay.io（公开镜像）&#10;docker pull proxy.xiaonuo.live/quay.io/prometheus/node-exporter:latest&#10;&#10;# Microsoft MCR（公开镜像）&#10;docker pull proxy.xiaonuo.live/mcr.microsoft.com/dotnet/runtime:7.0-alpine&#10;&#10;# GitHub Packages（部分镜像需要认证）&#10;docker pull proxy.xiaonuo.live/ghcr.io/owner/image:tag&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;对于 Kubernetes 节点上的 containerd，需要额外配置 &lt;code&gt;certs.d&lt;/code&gt; 并开启 &lt;code&gt;override_path&lt;/code&gt;，详见下一节。&lt;/p&gt;&#10;&lt;h3 class="heading-element" id="containerd-配置kubernetes-用户"&gt;&lt;span&gt;Containerd 配置（Kubernetes 用户）&lt;/span&gt;&#10; &lt;a href="#containerd-%e9%85%8d%e7%bd%aekubernetes-%e7%94%a8%e6%88%b7" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;h4 class="heading-element" id="方法一containerd-v1"&gt;&lt;span&gt;方法一：Containerd v1&lt;/span&gt;&#10; &lt;a href="#%e6%96%b9%e6%b3%95%e4%b8%80containerd-v1" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h4&gt;&lt;p&gt;编辑 &lt;code&gt;/etc/containerd/config.toml&lt;/code&gt;：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;[plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;docker.io&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live&amp;#34;]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;gcr.io&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live/gcr.io&amp;#34;]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;registry.k8s.io&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live/registry.k8s.io&amp;#34;]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;k8s.gcr.io&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live/k8s.gcr.io&amp;#34;]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;quay.io&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live/quay.io&amp;#34;]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;ghcr.io&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live/ghcr.io&amp;#34;]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;mcr.microsoft.com&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live/mcr.microsoft.com&amp;#34;]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;nvcr.io&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live/nvcr.io&amp;#34;]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;public.ecr.aws&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live/public.ecr.aws&amp;#34;]&#10; [plugins.&amp;#34;io.containerd.grpc.v1.cri&amp;#34;.registry.mirrors.&amp;#34;docker.cloudsmith.io&amp;#34;]&#10; endpoint = [&amp;#34;https://proxy.xiaonuo.live/docker.cloudsmith.io&amp;#34;]&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;重启 containerd：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo systemctl restart containerd&lt;/code&gt;&lt;/pre&gt;&lt;h4 class="heading-element" id="方法二containerd-v2推荐"&gt;&lt;span&gt;方法二：Containerd v2（推荐）&lt;/span&gt;&#10; &lt;a href="#%e6%96%b9%e6%b3%95%e4%ba%8ccontainerd-v2%e6%8e%a8%e8%8d%90" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h4&gt;&lt;ol&gt;&#10;&lt;li&gt;在 &lt;code&gt;/etc/containerd/config.toml&lt;/code&gt; 中启用 &lt;code&gt;certs.d&lt;/code&gt; 目录：&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;pre&gt;&lt;code&gt;[plugins.&amp;#34;io.containerd.cri.v1.images&amp;#34;.registry]&#10; config_path = &amp;#34;/etc/containerd/certs.d&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;ol start="2"&gt;&#10;&lt;li&gt;为各注册表创建 hosts 配置：&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;pre&gt;&lt;code&gt;# Docker Hub&#10;sudo mkdir -p /etc/containerd/certs.d/docker.io&#10;sudo tee /etc/containerd/certs.d/docker.io/hosts.toml &amp;lt;&amp;lt; EOF&#10;server = &amp;#34;https://docker.io&amp;#34;&#10;&#10;[host.&amp;#34;https://proxy.xiaonuo.live&amp;#34;]&#10; capabilities = [&amp;#34;pull&amp;#34;, &amp;#34;resolve&amp;#34;]&#10; skip_verify = false&#10;EOF&#10;&#10;# Google GCR&#10;sudo mkdir -p /etc/containerd/certs.d/gcr.io&#10;sudo tee /etc/containerd/certs.d/gcr.io/hosts.toml &amp;lt;&amp;lt; EOF&#10;server = &amp;#34;https://gcr.io&amp;#34;&#10;&#10;[host.&amp;#34;https://proxy.xiaonuo.live/gcr.io&amp;#34;]&#10; capabilities = [&amp;#34;pull&amp;#34;, &amp;#34;resolve&amp;#34;]&#10; override_path = true&#10;EOF&#10;&#10;# Kubernetes Registry&#10;sudo mkdir -p /etc/containerd/certs.d/registry.k8s.io&#10;sudo tee /etc/containerd/certs.d/registry.k8s.io/hosts.toml &amp;lt;&amp;lt; EOF&#10;server = &amp;#34;https://registry.k8s.io&amp;#34;&#10;&#10;[host.&amp;#34;https://proxy.xiaonuo.live/registry.k8s.io&amp;#34;]&#10; capabilities = [&amp;#34;pull&amp;#34;, &amp;#34;resolve&amp;#34;]&#10; override_path = true&#10;EOF&#10;&#10;# Kubernetes 旧版&#10;sudo mkdir -p /etc/containerd/certs.d/k8s.gcr.io&#10;sudo tee /etc/containerd/certs.d/k8s.gcr.io/hosts.toml &amp;lt;&amp;lt; EOF&#10;server = &amp;#34;https://k8s.gcr.io&amp;#34;&#10;&#10;[host.&amp;#34;https://proxy.xiaonuo.live/k8s.gcr.io&amp;#34;]&#10; capabilities = [&amp;#34;pull&amp;#34;, &amp;#34;resolve&amp;#34;]&#10; override_path = true&#10;EOF&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;其余注册表按同样格式创建即可：&lt;code&gt;quay.io&lt;/code&gt;、&lt;code&gt;ghcr.io&lt;/code&gt;、&lt;code&gt;mcr.microsoft.com&lt;/code&gt;、&lt;code&gt;nvcr.io&lt;/code&gt;、&lt;code&gt;public.ecr.aws&lt;/code&gt;、&lt;code&gt;docker.cloudsmith.io&lt;/code&gt;。&lt;/p&gt;&#10;&lt;ol start="3"&gt;&#10;&lt;li&gt;重启并测试：&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;pre&gt;&lt;code&gt;sudo systemctl restart containerd&#10;&#10;sudo crictl pull nginx:alpine&#10;sudo crictl pull registry.k8s.io/pause:3.9&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;配置项说明：&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;server&lt;/code&gt;：原始注册表地址&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;capabilities&lt;/code&gt;：支持的操作（&lt;code&gt;pull&lt;/code&gt;、&lt;code&gt;resolve&lt;/code&gt;、&lt;code&gt;push&lt;/code&gt;）&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;override_path&lt;/code&gt;：保留完整路径，路径前缀代理必须开启&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;skip_verify&lt;/code&gt;：是否跳过 TLS 校验，保持 &lt;code&gt;false&lt;/code&gt; 更安全&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h3 class="heading-element" id="sourceforge-加速"&gt;&lt;span&gt;SourceForge 加速&lt;/span&gt;&#10; &lt;a href="#sourceforge-%e5%8a%a0%e9%80%9f" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;# 原地址&#10;https://sourceforge.net/projects/projectname/files/file.zip&#10;&#10;# 加速地址&#10;https://proxy.xiaonuo.live/proxy?url=https://sourceforge.net/projects/projectname/files/file.zip&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="google-sheets-代理"&gt;&lt;span&gt;Google Sheets 代理&lt;/span&gt;&#10; &lt;a href="#google-sheets-%e4%bb%a3%e7%90%86" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;# 访问格式&#10;https://proxy.xiaonuo.live/sheet/YOUR_SHEET_ID&#10;&#10;# 示例&#10;https://proxy.xiaonuo.live/sheet/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;返回 JSON 格式数据，无需申请 API Key。注意表格需要设置为「任何人都可以查看」。&lt;/p&gt;&#10;&lt;h3 class="heading-element" id="直链下载加速"&gt;&lt;span&gt;直链下载加速&lt;/span&gt;&#10; &lt;a href="#%e7%9b%b4%e9%93%be%e4%b8%8b%e8%bd%bd%e5%8a%a0%e9%80%9f" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;# 方式1：/proxy?url= 格式（推荐）&#10;https://proxy.xiaonuo.live/proxy?url=https://example.com/file.zip&#10;&#10;# 方式2：根路径参数&#10;https://proxy.xiaonuo.live/?url=https://example.com/file.zip&#10;&#10;# 方式3：直接拼接（部分环境可能被阻止）&#10;https://proxy.xiaonuo.live/https://example.com/file.zip&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;支持 Range 请求，可断点续传。&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="验证部署"&gt;&lt;span&gt;验证部署&lt;/span&gt;&#10; &lt;a href="#%e9%aa%8c%e8%af%81%e9%83%a8%e7%bd%b2" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;p&gt;部署完成后，可以用下面的命令逐项验证：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;# 主页&#10;curl -I https://proxy.xiaonuo.live/&#10;&#10;# GitHub Raw 文件&#10;curl -s &amp;#39;https://proxy.xiaonuo.live/proxy?url=https://raw.githubusercontent.com/octocat/Hello-World/master/README&amp;#39;&#10;&#10;# GitHub Release 下载&#10;curl -I &amp;#39;https://proxy.xiaonuo.live/proxy?url=https://github.com/junegunn/fzf/releases/download/v0.54.0/fzf-0.54.0-linux_amd64.tar.gz&amp;#39;&#10;&#10;# Git Clone&#10;git clone https://proxy.xiaonuo.live/proxy?url=https://github.com/octocat/Hello-World.git&#10;&#10;# Docker Hub API&#10;curl -s https://proxy.xiaonuo.live/v2/&#10;&#10;# 其他注册表 API&#10;curl -s https://proxy.xiaonuo.live/v2/ghcr.io/linuxserver/baseimage-alpine/tags/list&#10;&#10;# Google Sheets&#10;curl -s https://proxy.xiaonuo.live/sheet/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms&#10;&#10;# 查看调试信息&#10;curl -s https://proxy.xiaonuo.live/debug&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;推荐用公开镜像测试 Docker 拉取：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;docker pull nginx:alpine&#10;docker pull proxy.xiaonuo.live/registry.k8s.io/pause:3.9&#10;docker pull proxy.xiaonuo.live/quay.io/prometheus/node-exporter:latest&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="故障排查"&gt;&lt;span&gt;故障排查&lt;/span&gt;&#10; &lt;a href="#%e6%95%85%e9%9a%9c%e6%8e%92%e6%9f%a5" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="docker-拉取失败"&gt;&lt;span&gt;Docker 拉取失败&lt;/span&gt;&#10; &lt;a href="#docker-%e6%8b%89%e5%8f%96%e5%a4%b1%e8%b4%a5" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;&lt;strong&gt;unauthorized 错误&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;部分注册表需要先认证：&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;# GitHub Packages 需要 GitHub Token（read:packages 权限）&#10;echo YOUR_GITHUB_TOKEN | docker login ghcr.io -u YOUR_USERNAME --password-stdin&#10;&#10;# NVIDIA NGC 需要 NVIDIA 账号&#10;docker login nvcr.io&#10;&#10;# 然后通过代理拉取&#10;docker pull proxy.xiaonuo.live/ghcr.io/owner/image:tag&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;代理会转发认证令牌，但个别注册表可能因域名不匹配拒绝认证，建议优先用公开镜像测试。&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;连接被重置&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;项目已经通过自动重写认证头和切换 Docker Hub 上游解决。若仍然出现，可尝试更换 &lt;code&gt;defaultDockerUpstream&lt;/code&gt;。&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;daemon.json 不生效&lt;/strong&gt;&lt;/p&gt;&#10;&lt;pre&gt;&lt;code&gt;# 检查配置&#10;cat /etc/docker/daemon.json&#10;&#10;# 校验 JSON 格式&#10;python3 -m json.tool /etc/docker/daemon.json&#10;&#10;# 重启并查看日志&#10;sudo systemctl restart docker&#10;sudo journalctl -u docker -f&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;路径前缀访问失败&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;确认格式为 &lt;code&gt;域名/注册表/镜像名:标签&lt;/code&gt;，例如 &lt;code&gt;proxy.xiaonuo.live/ghcr.io/owner/image:tag&lt;/code&gt;，不要手动加 &lt;code&gt;/v2&lt;/code&gt;。&lt;/p&gt;&#10;&lt;h3 class="heading-element" id="github-下载慢"&gt;&lt;span&gt;GitHub 下载慢&lt;/span&gt;&#10; &lt;a href="#github-%e4%b8%8b%e8%bd%bd%e6%85%a2" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;p&gt;可能原因：&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Cloudflare Workers 到 GitHub 的网络延迟&lt;/li&gt;&#10;&lt;li&gt;GitHub 自身限速&lt;/li&gt;&#10;&lt;li&gt;Workers 免费版请求额度用尽&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;可以稍后重试，或升级 Cloudflare Workers 付费版。&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="性能与限制"&gt;&lt;span&gt;性能与限制&lt;/span&gt;&#10; &lt;a href="#%e6%80%a7%e8%83%bd%e4%b8%8e%e9%99%90%e5%88%b6" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;p&gt;Cloudflare Workers 免费额度：&lt;/p&gt;&#10;&lt;div class="table-wrapper"&gt;&#10; &lt;table data-sortable&gt;&lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th&gt;项目&lt;/th&gt;&#10; &lt;th&gt;免费版&lt;/th&gt;&#10; &lt;th&gt;付费版&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;每天请求次数&lt;/td&gt;&#10; &lt;td&gt;100,000&lt;/td&gt;&#10; &lt;td&gt;按用量计费&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;CPU 时间&lt;/td&gt;&#10; &lt;td&gt;10ms/请求&lt;/td&gt;&#10; &lt;td&gt;默认 30s/请求，可配置&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;响应大小&lt;/td&gt;&#10; &lt;td&gt;流式响应无硬性限制&lt;/td&gt;&#10; &lt;td&gt;流式响应无硬性限制&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10; &lt;/table&gt;&#10;&lt;/div&gt;&lt;blockquote&gt;&#10;&lt;p&gt;具体额度以 Cloudflare 官方文档为准。&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;使用建议：&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;镜像层下载速度取决于上游注册表和 Cloudflare 网络状况&lt;/li&gt;&#10;&lt;li&gt;超大文件（100MB 以上）可能受上游速度影响&lt;/li&gt;&#10;&lt;li&gt;避免短时间大量并发请求&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 class="heading-element" id="安全说明"&gt;&lt;span&gt;安全说明&lt;/span&gt;&#10; &lt;a href="#%e5%ae%89%e5%85%a8%e8%af%b4%e6%98%8e" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;全程 HTTPS 加密&lt;/li&gt;&#10;&lt;li&gt;不记录用户日志&lt;/li&gt;&#10;&lt;li&gt;不存储任何数据&lt;/li&gt;&#10;&lt;li&gt;代码开源透明&lt;/li&gt;&#10;&lt;li&gt;支持 CORS 跨域&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;不要通过代理传输密码等敏感数据。&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h2 class="heading-element" id="总结"&gt;&lt;span&gt;总结&lt;/span&gt;&#10; &lt;a href="#%e6%80%bb%e7%bb%93" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;p&gt;从单一的 Docker 镜像加速，升级成了一个多功能加速代理：&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;一个 Worker + 一个域名，搞定 GitHub、Docker、SourceForge、Google Sheets 和直链下载&lt;/li&gt;&#10;&lt;li&gt;Docker 支持单域名路径前缀访问所有主流注册表&lt;/li&gt;&#10;&lt;li&gt;支持 Git Clone 加速和断点续传&lt;/li&gt;&#10;&lt;li&gt;部署简单，免费额度足够个人使用&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;项目地址：&lt;a href="https://github.com/iflyelf/proxy-cf" target="_blank" rel="external nofollow noopener noreferrer"&gt;https://github.com/iflyelf/proxy-cf&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;如果觉得有用，欢迎点个 Star。&lt;/p&gt;</description></item><item><title>Git基本操作</title><link>https://www.iflyelf.com/posts/base_git/</link><pubDate>Mon, 15 Jul 2024 08:00:00 +0800</pubDate><author>iflyelf@gmail.com (小诺)</author><guid>https://www.iflyelf.com/posts/base_git/</guid><category domain="https://www.iflyelf.com/categories/%E7%88%B1%E8%AE%B0%E5%BD%95%E7%88%B1%E6%95%B4%E7%90%86/">爱记录爱整理</category><description>&lt;img src="https://acg.iflyelf.com/base_git?w=1200&amp;h=504" alt="featured image" referrerpolicy="no-referrer"&gt;&lt;p&gt;Git基本操作&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="查看配置"&gt;&lt;span&gt;查看配置&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e9%85%8d%e7%bd%ae" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="查看全局配置"&gt;&lt;span&gt;查看全局配置&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e5%85%a8%e5%b1%80%e9%85%8d%e7%bd%ae" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git config --global --list&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="查看当前配置"&gt;&lt;span&gt;查看当前配置&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e5%bd%93%e5%89%8d%e9%85%8d%e7%bd%ae" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git config --list&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="配置个人的用户名称和电子邮件地址"&gt;&lt;span&gt;配置个人的用户名称和电子邮件地址&lt;/span&gt;&#10; &lt;a href="#%e9%85%8d%e7%bd%ae%e4%b8%aa%e4%ba%ba%e7%9a%84%e7%94%a8%e6%88%b7%e5%90%8d%e7%a7%b0%e5%92%8c%e7%94%b5%e5%ad%90%e9%82%ae%e4%bb%b6%e5%9c%b0%e5%9d%80" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git config --global user.name &amp;#34;iflyelf&amp;#34;&#10;git config --global user.email iflyelf@gmail.com&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="生成添加-ssh-公钥"&gt;&lt;span&gt;生成、添加 SSH 公钥&lt;/span&gt;&#10; &lt;a href="#%e7%94%9f%e6%88%90%e6%b7%bb%e5%8a%a0-ssh-%e5%85%ac%e9%92%a5" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="生成-ssh-公钥"&gt;&lt;span&gt;生成 SSH 公钥&lt;/span&gt;&#10; &lt;a href="#%e7%94%9f%e6%88%90-ssh-%e5%85%ac%e9%92%a5" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;ssh-keygen -t ed25519 -C &amp;#39;邮箱&amp;#39; -f ~/.ssh/gitee_id_rsa&#10;-t key 类型&#10;-C 注释&#10;ssh-keygen -t ed25519 -C &amp;#39;iflyelf@gmail.com&amp;#39; -f ~/.ssh/gitee_id_rsa&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="创建git仓库"&gt;&lt;span&gt;创建Git仓库&lt;/span&gt;&#10; &lt;a href="#%e5%88%9b%e5%bb%bagit%e4%bb%93%e5%ba%93" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="创建仓库目录文件并进入目录"&gt;&lt;span&gt;创建仓库目录文件并进入目录&lt;/span&gt;&#10; &lt;a href="#%e5%88%9b%e5%bb%ba%e4%bb%93%e5%ba%93%e7%9b%ae%e5%bd%95%e6%96%87%e4%bb%b6%e5%b9%b6%e8%bf%9b%e5%85%a5%e7%9b%ae%e5%bd%95" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;mkdir -pv git-me&#10;cd git-me&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="初始化git仓库"&gt;&lt;span&gt;初始化Git仓库&lt;/span&gt;&#10; &lt;a href="#%e5%88%9d%e5%a7%8b%e5%8c%96git%e4%bb%93%e5%ba%93" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git init&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="创建readme文件并编辑"&gt;&lt;span&gt;创建README文件并编辑&lt;/span&gt;&#10; &lt;a href="#%e5%88%9b%e5%bb%bareadme%e6%96%87%e4%bb%b6%e5%b9%b6%e7%bc%96%e8%be%91" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;touch README.md&#10;echo &amp;#34;学习git&amp;#34; &amp;gt;&amp;gt; README.md&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="增加文件到缓存区"&gt;&lt;span&gt;增加文件到缓存区&lt;/span&gt;&#10; &lt;a href="#%e5%a2%9e%e5%8a%a0%e6%96%87%e4%bb%b6%e5%88%b0%e7%bc%93%e5%ad%98%e5%8c%ba" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;h4 class="heading-element" id="增加所有修改的文件到缓存区不包括删除的文件到缓存区"&gt;&lt;span&gt;增加所有修改的文件到缓存区(不包括删除的文件到缓存区)&lt;/span&gt;&#10; &lt;a href="#%e5%a2%9e%e5%8a%a0%e6%89%80%e6%9c%89%e4%bf%ae%e6%94%b9%e7%9a%84%e6%96%87%e4%bb%b6%e5%88%b0%e7%bc%93%e5%ad%98%e5%8c%ba%e4%b8%8d%e5%8c%85%e6%8b%ac%e5%88%a0%e9%99%a4%e7%9a%84%e6%96%87%e4%bb%b6%e5%88%b0%e7%bc%93%e5%ad%98%e5%8c%ba" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h4&gt;&lt;pre&gt;&lt;code&gt;git add .&lt;/code&gt;&lt;/pre&gt;&lt;h4 class="heading-element" id="增加所有修改的文件包含删除的文件到缓存区"&gt;&lt;span&gt;增加所有修改的文件包含删除的文件到缓存区&lt;/span&gt;&#10; &lt;a href="#%e5%a2%9e%e5%8a%a0%e6%89%80%e6%9c%89%e4%bf%ae%e6%94%b9%e7%9a%84%e6%96%87%e4%bb%b6%e5%8c%85%e5%90%ab%e5%88%a0%e9%99%a4%e7%9a%84%e6%96%87%e4%bb%b6%e5%88%b0%e7%bc%93%e5%ad%98%e5%8c%ba" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h4&gt;&lt;pre&gt;&lt;code&gt;git add -A&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="将暂存区内容添加到仓库中"&gt;&lt;span&gt;将暂存区内容添加到仓库中&lt;/span&gt;&#10; &lt;a href="#%e5%b0%86%e6%9a%82%e5%ad%98%e5%8c%ba%e5%86%85%e5%ae%b9%e6%b7%bb%e5%8a%a0%e5%88%b0%e4%bb%93%e5%ba%93%e4%b8%ad" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git commit -am &amp;#34;创建README.md文件&amp;#34;&#10;-a 类似 git add . 但不包含新增加的文件&#10;-m 注释内容&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="增加远程仓库"&gt;&lt;span&gt;增加远程仓库&lt;/span&gt;&#10; &lt;a href="#%e5%a2%9e%e5%8a%a0%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git remote add &amp;lt;remote_name&amp;gt; &amp;lt;remote_url&amp;gt;&#10;remote_name 远程仓库的名称&#10;remote_url 远程仓库的 URL&#10;git remote add origin https://gitee.com/iflyelf/git-me.git&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="将本地仓库的代码上传至远程仓库"&gt;&lt;span&gt;将本地仓库的代码上传至远程仓库&lt;/span&gt;&#10; &lt;a href="#%e5%b0%86%e6%9c%ac%e5%9c%b0%e4%bb%93%e5%ba%93%e7%9a%84%e4%bb%a3%e7%a0%81%e4%b8%8a%e4%bc%a0%e8%87%b3%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git push &amp;lt;远程主机名&amp;gt; &amp;lt;本地分支名&amp;gt;:&amp;lt;远程分支名&amp;gt;&#10;git push -u origin &amp;#34;master&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="从远程获取代码并合并本地的版本"&gt;&lt;span&gt;从远程获取代码并合并本地的版本&lt;/span&gt;&#10; &lt;a href="#%e4%bb%8e%e8%bf%9c%e7%a8%8b%e8%8e%b7%e5%8f%96%e4%bb%a3%e7%a0%81%e5%b9%b6%e5%90%88%e5%b9%b6%e6%9c%ac%e5%9c%b0%e7%9a%84%e7%89%88%e6%9c%ac" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git pull &amp;lt;远程主机名&amp;gt; &amp;lt;远程分支名&amp;gt;:&amp;lt;本地分支名&amp;gt;&#10;git pull origin master&lt;/code&gt;&lt;/pre&gt;&lt;h1 class="heading-element" id="git-分支管理"&gt;&lt;span&gt;Git 分支管理&lt;/span&gt;&#10; &lt;a href="#git-%e5%88%86%e6%94%af%e7%ae%a1%e7%90%86" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h1&gt;&lt;h2 class="heading-element" id="创建分支"&gt;&lt;span&gt;创建分支&lt;/span&gt;&#10; &lt;a href="#%e5%88%9b%e5%bb%ba%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git branch 分支名称&#10;git branch dev&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="切换分支"&gt;&lt;span&gt;切换分支&lt;/span&gt;&#10; &lt;a href="#%e5%88%87%e6%8d%a2%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git checkout 分支名称&#10;git checkout dev&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="创建分支并切换至新分支"&gt;&lt;span&gt;创建分支并切换至新分支&lt;/span&gt;&#10; &lt;a href="#%e5%88%9b%e5%bb%ba%e5%88%86%e6%94%af%e5%b9%b6%e5%88%87%e6%8d%a2%e8%87%b3%e6%96%b0%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git checkout -b 分支名称&#10;git checkout -b test&#10;or&#10;git switch -c 分支名称&#10;git switch -c test&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="查看分支"&gt;&lt;span&gt;查看分支&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="查看本地仓库所有分支"&gt;&lt;span&gt;查看本地仓库所有分支&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e6%9c%ac%e5%9c%b0%e4%bb%93%e5%ba%93%e6%89%80%e6%9c%89%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git branch&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="查看远程仓库所有分支"&gt;&lt;span&gt;查看远程仓库所有分支&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93%e6%89%80%e6%9c%89%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git branch -r&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="查看本地和远程仓库所有分支"&gt;&lt;span&gt;查看本地和远程仓库所有分支&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e6%9c%ac%e5%9c%b0%e5%92%8c%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93%e6%89%80%e6%9c%89%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git branch -a&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="推送本地分支到远程仓库分支"&gt;&lt;span&gt;推送本地分支到远程仓库分支&lt;/span&gt;&#10; &lt;a href="#%e6%8e%a8%e9%80%81%e6%9c%ac%e5%9c%b0%e5%88%86%e6%94%af%e5%88%b0%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git push origin 本地分支名称&#10;git push origin test&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="获取远程仓库代码到本地仓库分支"&gt;&lt;span&gt;获取远程仓库代码到本地仓库分支&lt;/span&gt;&#10; &lt;a href="#%e8%8e%b7%e5%8f%96%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93%e4%bb%a3%e7%a0%81%e5%88%b0%e6%9c%ac%e5%9c%b0%e4%bb%93%e5%ba%93%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git fetch -p&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="合并分支"&gt;&lt;span&gt;合并分支&lt;/span&gt;&#10; &lt;a href="#%e5%90%88%e5%b9%b6%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git merge 分支名称&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="删除分支"&gt;&lt;span&gt;删除分支&lt;/span&gt;&#10; &lt;a href="#%e5%88%a0%e9%99%a4%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="删除分支-1"&gt;&lt;span&gt;删除分支&lt;/span&gt;&#10; &lt;a href="#%e5%88%a0%e9%99%a4%e5%88%86%e6%94%af-1" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git branch -d 分支名称&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="强制删除分支"&gt;&lt;span&gt;强制删除分支&lt;/span&gt;&#10; &lt;a href="#%e5%bc%ba%e5%88%b6%e5%88%a0%e9%99%a4%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git branch -D 分支名称&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="删除远程分支"&gt;&lt;span&gt;删除远程分支&lt;/span&gt;&#10; &lt;a href="#%e5%88%a0%e9%99%a4%e8%bf%9c%e7%a8%8b%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git push origin --delete test&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="git-标签"&gt;&lt;span&gt;Git 标签&lt;/span&gt;&#10; &lt;a href="#git-%e6%a0%87%e7%ad%be" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="创建标签git-commit之后操作"&gt;&lt;span&gt;创建标签(git commit之后操作)&lt;/span&gt;&#10; &lt;a href="#%e5%88%9b%e5%bb%ba%e6%a0%87%e7%ad%begit-commit%e4%b9%8b%e5%90%8e%e6%93%8d%e4%bd%9c" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git tag -a 版本号 -m &amp;#34;版本描述&amp;#34;&#10;git tag -a v1.0 -m &amp;#34;v1.0&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="查看标签"&gt;&lt;span&gt;查看标签&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e6%a0%87%e7%ad%be" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git tag&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="查看该版本所修改的内容"&gt;&lt;span&gt;查看该版本所修改的内容&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e8%af%a5%e7%89%88%e6%9c%ac%e6%89%80%e4%bf%ae%e6%94%b9%e7%9a%84%e5%86%85%e5%ae%b9" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git show 版本号&#10;git show v1.1&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="删除标签"&gt;&lt;span&gt;删除标签&lt;/span&gt;&#10; &lt;a href="#%e5%88%a0%e9%99%a4%e6%a0%87%e7%ad%be" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git tag -d 版本号&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="git-版本管理"&gt;&lt;span&gt;Git 版本管理&lt;/span&gt;&#10; &lt;a href="#git-%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="查看当前仓库状态"&gt;&lt;span&gt;查看当前仓库状态&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e5%bd%93%e5%89%8d%e4%bb%93%e5%ba%93%e7%8a%b6%e6%80%81" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git status -s&#10;M 被修改&#10;A 增加&#10;D 删除&#10;R 重命名&#10;C 被拷贝&#10;U 被更新但是未合并&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="查看代码提交记录"&gt;&lt;span&gt;查看代码提交记录&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e4%bb%a3%e7%a0%81%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;h4 class="heading-element" id="查看历史提交记录"&gt;&lt;span&gt;查看历史提交记录&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e5%8e%86%e5%8f%b2%e6%8f%90%e4%ba%a4%e8%ae%b0%e5%bd%95" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h4&gt;&lt;pre&gt;&lt;code&gt;git log --oneline&lt;/code&gt;&lt;/pre&gt;&lt;h4 class="heading-element" id="以列表形式查看指定文件的历史修改记录"&gt;&lt;span&gt;以列表形式查看指定文件的历史修改记录&lt;/span&gt;&#10; &lt;a href="#%e4%bb%a5%e5%88%97%e8%a1%a8%e5%bd%a2%e5%bc%8f%e6%9f%a5%e7%9c%8b%e6%8c%87%e5%ae%9a%e6%96%87%e4%bb%b6%e7%9a%84%e5%8e%86%e5%8f%b2%e4%bf%ae%e6%94%b9%e8%ae%b0%e5%bd%95" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h4&gt;&lt;pre&gt;&lt;code&gt;git blame 文件名&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="对比文件内容差异"&gt;&lt;span&gt;对比文件内容差异&lt;/span&gt;&#10; &lt;a href="#%e5%af%b9%e6%af%94%e6%96%87%e4%bb%b6%e5%86%85%e5%ae%b9%e5%b7%ae%e5%bc%82" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git diff 文件名&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="恢复或撤销文件的更改"&gt;&lt;span&gt;恢复或撤销文件的更改&lt;/span&gt;&#10; &lt;a href="#%e6%81%a2%e5%a4%8d%e6%88%96%e6%92%a4%e9%94%80%e6%96%87%e4%bb%b6%e7%9a%84%e6%9b%b4%e6%94%b9" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="撤销单个文件的修改丢弃所有未提交的更改"&gt;&lt;span&gt;撤销单个文件的修改(丢弃所有未提交的更改)&lt;/span&gt;&#10; &lt;a href="#%e6%92%a4%e9%94%80%e5%8d%95%e4%b8%aa%e6%96%87%e4%bb%b6%e7%9a%84%e4%bf%ae%e6%94%b9%e4%b8%a2%e5%bc%83%e6%89%80%e6%9c%89%e6%9c%aa%e6%8f%90%e4%ba%a4%e7%9a%84%e6%9b%b4%e6%94%b9" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git restore 文件名称&#10;git checkout -- 文件名称&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="还原文件到暂存区的状态"&gt;&lt;span&gt;还原文件到暂存区的状态&lt;/span&gt;&#10; &lt;a href="#%e8%bf%98%e5%8e%9f%e6%96%87%e4%bb%b6%e5%88%b0%e6%9a%82%e5%ad%98%e5%8c%ba%e7%9a%84%e7%8a%b6%e6%80%81" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git restore --staged 文件名称&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="还原所有未提交的更改包括工作目录和暂存区的更改"&gt;&lt;span&gt;还原所有未提交的更改(包括工作目录和暂存区的更改)&lt;/span&gt;&#10; &lt;a href="#%e8%bf%98%e5%8e%9f%e6%89%80%e6%9c%89%e6%9c%aa%e6%8f%90%e4%ba%a4%e7%9a%84%e6%9b%b4%e6%94%b9%e5%8c%85%e6%8b%ac%e5%b7%a5%e4%bd%9c%e7%9b%ae%e5%bd%95%e5%92%8c%e6%9a%82%e5%ad%98%e5%8c%ba%e7%9a%84%e6%9b%b4%e6%94%b9" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git restore .&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="还原文件到指定提交的状态"&gt;&lt;span&gt;还原文件到指定提交的状态&lt;/span&gt;&#10; &lt;a href="#%e8%bf%98%e5%8e%9f%e6%96%87%e4%bb%b6%e5%88%b0%e6%8c%87%e5%ae%9a%e6%8f%90%e4%ba%a4%e7%9a%84%e7%8a%b6%e6%80%81" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git restore --source=&amp;lt;commit&amp;gt; &amp;lt;file&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="回退版本"&gt;&lt;span&gt;回退版本&lt;/span&gt;&#10; &lt;a href="#%e5%9b%9e%e9%80%80%e7%89%88%e6%9c%ac" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;h3 class="heading-element" id="回退所有内容到上一个版本"&gt;&lt;span&gt;回退所有内容到上一个版本&lt;/span&gt;&#10; &lt;a href="#%e5%9b%9e%e9%80%80%e6%89%80%e6%9c%89%e5%86%85%e5%ae%b9%e5%88%b0%e4%b8%8a%e4%b8%80%e4%b8%aa%e7%89%88%e6%9c%ac" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git reset HEAD^&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="回退到某个版本"&gt;&lt;span&gt;回退到某个版本&lt;/span&gt;&#10; &lt;a href="#%e5%9b%9e%e9%80%80%e5%88%b0%e6%9f%90%e4%b8%aa%e7%89%88%e6%9c%ac" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git reset --soft HEAD&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="回退到某个版本回退点之前的所有信息"&gt;&lt;span&gt;回退到某个版本回退点之前的所有信息&lt;/span&gt;&#10; &lt;a href="#%e5%9b%9e%e9%80%80%e5%88%b0%e6%9f%90%e4%b8%aa%e7%89%88%e6%9c%ac%e5%9b%9e%e9%80%80%e7%82%b9%e4%b9%8b%e5%89%8d%e7%9a%84%e6%89%80%e6%9c%89%e4%bf%a1%e6%81%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git reset --hard 版本号&#10;git reset --hard v1.0&lt;/code&gt;&lt;/pre&gt;&lt;h3 class="heading-element" id="将本地的状态回退到和远程的一样"&gt;&lt;span&gt;将本地的状态回退到和远程的一样&lt;/span&gt;&#10; &lt;a href="#%e5%b0%86%e6%9c%ac%e5%9c%b0%e7%9a%84%e7%8a%b6%e6%80%81%e5%9b%9e%e9%80%80%e5%88%b0%e5%92%8c%e8%bf%9c%e7%a8%8b%e7%9a%84%e4%b8%80%e6%a0%b7" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h3&gt;&lt;pre&gt;&lt;code&gt;git reset --hard origin/master&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>上传博客至github仓库</title><link>https://www.iflyelf.com/posts/update_github/</link><pubDate>Mon, 15 Jul 2024 08:00:00 +0800</pubDate><author>iflyelf@gmail.com (小诺)</author><guid>https://www.iflyelf.com/posts/update_github/</guid><category domain="https://www.iflyelf.com/categories/%E7%88%B1%E8%AE%B0%E5%BD%95%E7%88%B1%E6%95%B4%E7%90%86/">爱记录爱整理</category><description>&lt;img src="https://acg.iflyelf.com/update_github?w=1200&amp;h=504" alt="featured image" referrerpolicy="no-referrer"&gt;&lt;p&gt;上传博客至github仓库&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="配置个人的用户名称和电子邮件地址"&gt;&lt;span&gt;配置个人的用户名称和电子邮件地址&lt;/span&gt;&#10; &lt;a href="#%e9%85%8d%e7%bd%ae%e4%b8%aa%e4%ba%ba%e7%9a%84%e7%94%a8%e6%88%b7%e5%90%8d%e7%a7%b0%e5%92%8c%e7%94%b5%e5%ad%90%e9%82%ae%e4%bb%b6%e5%9c%b0%e5%9d%80" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git config --global user.name &amp;#34;iflyelf&amp;#34;&#10;git config --global user.email iflyelf@gmail.com&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="查看全局配置"&gt;&lt;span&gt;查看全局配置&lt;/span&gt;&#10; &lt;a href="#%e6%9f%a5%e7%9c%8b%e5%85%a8%e5%b1%80%e9%85%8d%e7%bd%ae" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git config --global --list&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;参考地址:&#10;&lt;a href="https://docs.github.com/zh/get-started/getting-started-with-git/setting-your-username-in-git" target="_blank" rel="external nofollow noopener noreferrer"&gt;https://docs.github.com/zh/get-started/getting-started-with-git/setting-your-username-in-git&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="为硬件安全密钥生成新的-ssh-密钥"&gt;&lt;span&gt;为硬件安全密钥生成新的 SSH 密钥&lt;/span&gt;&#10; &lt;a href="#%e4%b8%ba%e7%a1%ac%e4%bb%b6%e5%ae%89%e5%85%a8%e5%af%86%e9%92%a5%e7%94%9f%e6%88%90%e6%96%b0%e7%9a%84-ssh-%e5%af%86%e9%92%a5" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;ssh-keygen -t ed25519 -C &amp;#34;iflyelf@gmail.com&amp;#34; -f ~/.ssh/github_id_rsa&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;参考地址:&#10;&lt;a href="https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" target="_blank" rel="external nofollow noopener noreferrer"&gt;https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="获取ssh-公钥"&gt;&lt;span&gt;获取SSH 公钥&lt;/span&gt;&#10; &lt;a href="#%e8%8e%b7%e5%8f%96ssh-%e5%85%ac%e9%92%a5" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;cat /root/.ssh/github_id_rsa.pub&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="将-ssh-密钥添加到-ssh-agent"&gt;&lt;span&gt;将 SSH 密钥添加到 ssh-agent&lt;/span&gt;&#10; &lt;a href="#%e5%b0%86-ssh-%e5%af%86%e9%92%a5%e6%b7%bb%e5%8a%a0%e5%88%b0-ssh-agent" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;1&amp;gt; 在后台启动 ssh 代理&#10;eval &amp;#34;$(ssh-agent -s)&amp;#34;&#10;2&amp;gt; 将 SSH 私钥添加到 ssh-agent&#10;ssh-add /root/.ssh/github_id_rsa&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;参考地址:&#10;&lt;a href="https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account" target="_blank" rel="external nofollow noopener noreferrer"&gt;https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="测试-ssh-连接"&gt;&lt;span&gt;测试 SSH 连接&lt;/span&gt;&#10; &lt;a href="#%e6%b5%8b%e8%af%95-ssh-%e8%bf%9e%e6%8e%a5" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;参考地址:&#10;&lt;a href="https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection" target="_blank" rel="external nofollow noopener noreferrer"&gt;https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 class="heading-element" id="创建readme文件并编辑"&gt;&lt;span&gt;创建README文件并编辑&lt;/span&gt;&#10; &lt;a href="#%e5%88%9b%e5%bb%bareadme%e6%96%87%e4%bb%b6%e5%b9%b6%e7%bc%96%e8%be%91" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;touch README.md&#10;echo &amp;#34;# 小精灵笔记&amp;#34; &amp;gt; README.md&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="增加所有修改的文件到缓存区"&gt;&lt;span&gt;增加所有修改的文件到缓存区&lt;/span&gt;&#10; &lt;a href="#%e5%a2%9e%e5%8a%a0%e6%89%80%e6%9c%89%e4%bf%ae%e6%94%b9%e7%9a%84%e6%96%87%e4%bb%b6%e5%88%b0%e7%bc%93%e5%ad%98%e5%8c%ba" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git add .&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="将暂存区内容添加到仓库中"&gt;&lt;span&gt;将暂存区内容添加到仓库中&lt;/span&gt;&#10; &lt;a href="#%e5%b0%86%e6%9a%82%e5%ad%98%e5%8c%ba%e5%86%85%e5%ae%b9%e6%b7%bb%e5%8a%a0%e5%88%b0%e4%bb%93%e5%ba%93%e4%b8%ad" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git commit -am &amp;#34;创建README.md文件&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="重命名当前分支"&gt;&lt;span&gt;重命名当前分支&lt;/span&gt;&#10; &lt;a href="#%e9%87%8d%e5%91%bd%e5%90%8d%e5%bd%93%e5%89%8d%e5%88%86%e6%94%af" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git branch -M main&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="增加远程仓库"&gt;&lt;span&gt;增加远程仓库&lt;/span&gt;&#10; &lt;a href="#%e5%a2%9e%e5%8a%a0%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git remote add origin https://github.com/iflyelf/blog.git&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="将本地仓库的代码上传至远程仓库"&gt;&lt;span&gt;将本地仓库的代码上传至远程仓库&lt;/span&gt;&#10; &lt;a href="#%e5%b0%86%e6%9c%ac%e5%9c%b0%e4%bb%93%e5%ba%93%e7%9a%84%e4%bb%a3%e7%a0%81%e4%b8%8a%e4%bc%a0%e8%87%b3%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;pre&gt;&lt;code&gt;git push -u origin main&lt;/code&gt;&lt;/pre&gt;&lt;h2 class="heading-element" id="管理个人访问令牌"&gt;&lt;span&gt;管理个人访问令牌&lt;/span&gt;&#10; &lt;a href="#%e7%ae%a1%e7%90%86%e4%b8%aa%e4%ba%ba%e8%ae%bf%e9%97%ae%e4%bb%a4%e7%89%8c" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h2&gt;&lt;p&gt;创建个人访问令牌地址&#10;&lt;a href="https://github.com/settings/tokens/new" target="_blank" rel="external nofollow noopener noreferrer"&gt;https://github.com/settings/tokens/new&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;br/&gt;&#10;参考地址:&#10;&lt;a href="https://docs.github.com/zh/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens" target="_blank" rel="external nofollow noopener noreferrer"&gt;https://docs.github.com/zh/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>