1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Git] カレント以外のローカルのブランチ全削除(win、mac)

Posted at

ローカルのカレントブランチ以外を一括削除します

win

git branch | ? {$_.StartsWith('*') -eq $False}| % {git branch -D $_.Trim()}

mac

git branch | xargs git branch -D
1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?