<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GitHub on 数字花园 | Mlosun.com</title><link>https://mlosun.com/tags/github/</link><description>Recent content in GitHub on 数字花园 | Mlosun.com</description><generator>Hugo</generator><language>zh-cn</language><managingEditor>mlosun@qq.com (mlosun)</managingEditor><webMaster>mlosun@qq.com (mlosun)</webMaster><copyright>© 数字花园 | Mlosun.com</copyright><lastBuildDate>Sat, 05 Sep 2026 13:39:40 +0800</lastBuildDate><atom:link href="https://mlosun.com/tags/github/index.xml" rel="self" type="application/rss+xml"/><item><title>Git 清理远端仓库全部提交历史</title><link>https://mlosun.com/docs/%E5%AE%9E%E8%B7%B5%E7%AC%94%E8%AE%B0/git-%E6%B8%85%E7%90%86%E8%BF%9C%E7%AB%AF%E4%BB%93%E5%BA%93%E5%85%A8%E9%83%A8%E6%8F%90%E4%BA%A4%E5%8E%86%E5%8F%B2/</link><pubDate>Wed, 11 Sep 2024 00:00:00 +0800</pubDate><author>mlosun@qq.com (mlosun)</author><guid>https://mlosun.com/docs/%E5%AE%9E%E8%B7%B5%E7%AC%94%E8%AE%B0/git-%E6%B8%85%E7%90%86%E8%BF%9C%E7%AB%AF%E4%BB%93%E5%BA%93%E5%85%A8%E9%83%A8%E6%8F%90%E4%BA%A4%E5%8E%86%E5%8F%B2/</guid><description>&lt;div class="td-callout td-callout--warning" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-triangle-exclamation" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;注意&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;此操作不可逆，会永久删除仓库的所有提交历史，请提前做好备份。&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;h2 id="背景"&gt;背景&#10;&lt;/h2&gt;&#10;&lt;p&gt;当提交记录中包含隐私信息（如密钥、密码），或仓库因上传大量文件导致体积过大、拉取频繁出错时，可以通过清除全部提交历史来&amp;quot;瘦身&amp;quot;仓库，同时保留仓库本身（Star、Issues 等不受影响）。&lt;/p&gt;</description></item></channel></rss>