# Git Branch Deletion - The quick note edition

Published: 2011-07-22
Tags: git

<p>Are you Sir Git-a-lot ? Do you use branches like there's no tomorrow? Here's a couple of worth while quick notes</p>
<h3>Delete a remote branch</h3>
<pre>$ git push <em>&lt;remote&gt;</em> <strong>:</strong><em>&lt;branch_name&gt;</em></pre>
<h3>Delete local branch (obvious, but let's group things)</h3>
<pre>$ git branch -d <em>&lt;branch_name&gt;</em></pre>
<h3>Clean up your local repository of all those deleted remote branches</h3>
<pre>$ git remote prune <em>&lt;remote&gt;</em></pre>
<pre><em>
</em></pre>
<p>Now go be a happy little hu-man</p>
