<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cleanup on Commentary of Takao</title><link>https://takao.blog/zh-tw/tags/cleanup/</link><description>Recent content in Cleanup on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>zh-TW</language><copyright>Commentary of Takao</copyright><lastBuildDate>Wed, 15 Jul 2026 22:01:08 +0900</lastBuildDate><atom:link href="https://takao.blog/zh-tw/tags/cleanup/index.xml" rel="self" type="application/rss+xml"/><item><title>使用 git fetch --prune 清理孤立遠端分支</title><link>https://takao.blog/zh-tw/web/git-prune-clean-remote-branches/</link><pubDate>Thu, 25 Dec 2025 00:00:00 +0900</pubDate><guid>https://takao.blog/zh-tw/web/git-prune-clean-remote-branches/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/git-prune-clean-remote-branches-zh-tw.png" alt="Featured image of post 使用 git fetch --prune 清理孤立遠端分支" /&gt;&lt;p&gt;在使用 GitHub 或 GitLab 的現代開發工作流程中，一旦合併了相應的拉取請求 (PR)，功能分支通常就會在遠端主機上刪除。&lt;/p&gt;
&lt;p&gt;但是，當您在本機終端中執行 &lt;code&gt;git branch -a&lt;/code&gt; 時，您會注意到 **指向那些已刪除的遠端分支（例如 &lt;code&gt;remotes/origin/feature-xxx&lt;/code&gt;）的引用無限期地保留在您的分支清單中。 **&lt;/p&gt;</description></item></channel></rss>