<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>教程 on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/%E6%95%99%E7%A8%8B/</link><description>Recent content in 教程 on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 01 Sep 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/%E6%95%99%E7%A8%8B/index.xml" rel="self" type="application/rss+xml"/><item><title>git filter-repo：彻底清理 Git 仓库历史（大文件 / 敏感信息）</title><link>https://leafcxy.github.io/posts/2026/09/git-filter-repo-clean-history/</link><pubDate>Tue, 01 Sep 2026 10:00:00 +0800</pubDate><guid>https://leafcxy.github.io/posts/2026/09/git-filter-repo-clean-history/</guid><description>&lt;p&gt;仓库用了几年之后，&lt;code&gt;.git&lt;/code&gt; 目录常常比源码本身还大——曾经提交过的大文件、误传的密钥、不小心提交的 &lt;code&gt;node_modules&lt;/code&gt;，都永久留在了历史里。它们不会因为你后来删掉文件而消失，只要别人 &lt;code&gt;git clone&lt;/code&gt; 一下，这些包袱就会被整个拖下来。本文介绍 &lt;strong&gt;git filter-repo&lt;/strong&gt;，Git 官方推荐的历史重写工具，用来把这些垃圾彻底清出仓库历史。&lt;/p&gt;</description></item></channel></rss>