<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gumfum</author_name>
  <author_url>https://blog.hatena.ne.jp/gumfum/</author_url>
  <blog_title>gumfum blog</blog_title>
  <blog_url>https://gumfum.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>git を利用して作業していると、マージ済のブランチがローカルに残ったままになってしまうことが多い。放置したままにしていると作業が進むにつれて増え続けてしまうため、できれば一括で削除したい。 前提 ローカルブランチを1つ削除したいのであれば、以下のコマンドで実行できる。 % git branch -d &lt;ブランチ名&gt; ただ、現在のブランチにマージされていない場合は、警告が出て削除はされない。 強制的に削除したい場合は -D オプションを使う必要がある。 % git branch -D &lt;ブランチ名&gt; マージ済のブランチを全て削除したい ローカルブランチは git branch コマンドで表示で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgumfum.hatenablog.com%2Fentry%2F2023%2F07%2F30%2F230000&quot; title=&quot;gitでマージ済のブランチを一括で削除したい - gumfum blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://m.media-amazon.com/images/I/51+cSZM6P2L._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-07-30 23:00:00</published>
  <title>gitでマージ済のブランチを一括で削除したい</title>
  <type>rich</type>
  <url>https://gumfum.hatenablog.com/entry/2023/07/30/230000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
