LoginSignup
0
0

More than 5 years have passed since last update.

git local branch 一括削除

Posted at

はじめに

マージ前のブランチで動作検証してると、大量にあふれてくるので、一括でローカルブランチを消したい時に使います

branch 一括削除

前提

  • peco と zsh 使ってます
  • alias 切ってます

コマンド

peco のブランチ一覧で [Ctrl+Space] で削除したいブランチを選択

gb P X git branch -D

alias を展開すると、以下のような感じ

git branch | peco | xargs git branch -D

気分で --merged オプション追加したり、-D-d にします

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0