<?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/es/tags/cleanup/</link><description>Recent content in Cleanup on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>es</language><copyright>Commentary of Takao</copyright><lastBuildDate>Sun, 12 Jul 2026 04:12:51 +0900</lastBuildDate><atom:link href="https://takao.blog/es/tags/cleanup/index.xml" rel="self" type="application/rss+xml"/><item><title>Limpieza de ramas remotas huérfanas con git prune</title><link>https://takao.blog/es/web/git-prune-clean-remote-branches/</link><pubDate>Thu, 25 Dec 2025 00:00:00 +0900</pubDate><guid>https://takao.blog/es/web/git-prune-clean-remote-branches/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/git-prune-clean-remote-branches-es.png" alt="Featured image of post Limpieza de ramas remotas huérfanas con git prune" /&gt;&lt;p&gt;Las ramas remotas eliminadas en el servidor pueden quedar como referencias locales obsoletas. &lt;code&gt;git remote prune&lt;/code&gt; y &lt;code&gt;git fetch --prune&lt;/code&gt; las eliminan.&lt;/p&gt;
&lt;h2 id="el-problema"&gt;El problema
&lt;/h2&gt;&lt;p&gt;Cuando un compañero elimina una rama remota, tu repositorio local aún conserva &lt;code&gt;origin/rama-eliminada&lt;/code&gt;. Con el tiempo se acumulan decenas de referencias muertas.&lt;/p&gt;
&lt;h2 id="soluciones"&gt;Soluciones
&lt;/h2&gt;&lt;p&gt;&lt;code&gt;git fetch --prune origin&lt;/code&gt; limpia al hacer fetch. &lt;code&gt;git remote prune origin&lt;/code&gt; limpia sin fetch. Configura &lt;code&gt;fetch.prune = true&lt;/code&gt; globalmente.&lt;/p&gt;
&lt;h2 id="ramas-locales-huérfanas"&gt;Ramas locales huérfanas
&lt;/h2&gt;&lt;p&gt;Usa &lt;code&gt;git branch --merged&lt;/code&gt; para encontrar ramas locales ya mergeadas. Elimínalas con &lt;code&gt;git branch -d&lt;/code&gt;. Combina con prun para limpieza completa.&lt;/p&gt;</description></item></channel></rss>