LoginSignup
3

More than 5 years have passed since last update.

ローカルのブランチを素敵に掃除できるツールbranchd

Last updated at Posted at 2017-02-18

ガツガツ仕事してるとバンバン残っていくのがそう、ごみブランチ。
そいつらをキレイにするための以前から愛用しているツールの紹介をします。

その名もbranchd

READMEが日本語なのであえて説明するほどでもないですが一応。

導入方法は至って簡単

$npm install -g branchd

対象のリポジトリへ移動し、コマンド実行

$branchd

ちなみにブランチ一覧
Kobito.K2JGpq.png

すると1件ずつ(y/n)を確認してくれます。
間違い防止のためかブランチ名が強調されます。優しい。

Kobito.CEsZ4y.png

y+Enter or Entergomi1が削除され次のブランチを削除するか確認してくれます。優しい。

Kobito.IIpT0c.png

gomijanaiブランチ以外は全て削除しました。
Kobito.y1PbJO.png

残ったブランチを確認

$git branch

いいね!そういえばmasterdevelopは除外されてました。優しい。
Kobito.Y69YDp.png

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
3