<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ShineSpark</author_name>
  <author_url>https://blog.hatena.ne.jp/ShineSpark/</author_url>
  <blog_title>人生シーケンスブレイク</blog_title>
  <blog_url>https://shinespark.hatenablog.com/</blog_url>
  <categories>
    <anon>git</anon>
  </categories>
  <description>やりたいこと 開発していると不要なブランチがローカルに溜まってしまうのでまとめて一発で削除したい コマンド パイプとxargsを利用してまとめて消せるようにしたコマンド $ git branch | grep -v &quot;*&quot; | grep -v master | xargs git branch -D grep の -v オプションは除外。 ブランチ一覧から、カレントを示す * と masterブランチを除外し、ブランチを削除する エイリアス化 時々実行することがあるので、 zshrc にエイリアスとして以下を追加した。 alias delete_branches='git branch | g…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinespark.hatenablog.com%2Fentry%2F2020%2F03%2F12%2F090000&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>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-12 09:00:00</published>
  <title>gitで不要になったブランチをまとめて一発で消したい</title>
  <type>rich</type>
  <url>https://shinespark.hatenablog.com/entry/2020/03/12/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
