<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>motemen</author_name>
  <author_url>https://blog.hatena.ne.jp/motemen/</author_url>
  <blog_title>詩と創作・思索のひろば</blog_title>
  <blog_url>https://motemen.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>こうしてます。 git for-each-ref --merged HEAD --no-contains HEAD 'refs/heads/**' --format '%(refname)' \ | while read s; do echo &quot;$s $(git rev-parse &quot;$s&quot;)&quot;; git update-ref -d &quot;$s&quot;; done git branch を使ったやり方が一般的なようだが（Google調べ）、配管（Plumbing）コマンドを使って厳密にやるならこうでしょう。 git for-each-ref はリポジトリのrefを一覧するコマンド。refs/heads/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmotemen.hatenablog.com%2Fentry%2F2023%2F10%2Fgit-delete-merged-branches&quot; title=&quot;Gitでマージ済みのブランチを一括削除する - 詩と創作・思索のひろば&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-10-20 09:00:00</published>
  <title>Gitでマージ済みのブランチを一括削除する</title>
  <type>rich</type>
  <url>https://motemen.hatenablog.com/entry/2023/10/git-delete-merged-branches</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
