<?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>Gitignore on TinyChen's Blog</title><link>https://tinychen.com/tags/gitignore/</link><description>Recent content in Gitignore on TinyChen's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 23 Jul 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://tinychen.com/tags/gitignore/index.xml" rel="self" type="application/rss+xml"/><item><title>Git取消追踪本地文件与改写历史</title><link>https://tinychen.com/20260302-git-rm-cached-and-gitignore/</link><pubDate>Mon, 02 Mar 2026 14:13:06 +0800</pubDate><guid>https://tinychen.com/20260302-git-rm-cached-and-gitignore/</guid><description>&lt;p&gt;本文主要记录误将本地数据库等大文件纳入 Git 版本库后的处理：用 &lt;code&gt;git rm --cached&lt;/code&gt; 停止追踪并写入 &lt;code&gt;.gitignore&lt;/code&gt;；若需从历史中剔除则使用 &lt;code&gt;filter-branch&lt;/code&gt;（或 git-filter-repo）并 force push；以及 Gitea 上仓库体积暂增时的 GC 说明与协作/CI 注意点。&lt;/p&gt;</description></item></channel></rss>