git for-each-ref --format '%(refname:short) %(upstream:track)' |
awk '$2 == "[gone]" {print $1}' |
xargs git branch -D
.gitconfigにエイリアスとして登録するとなお良しです。
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
git for-each-ref --format '%(refname:short) %(upstream:track)' |
awk '$2 == "[gone]" {print $1}' |
xargs git branch -D
.gitconfigにエイリアスとして登録するとなお良しです。
Register as a new user and use Qiita more conveniently
Go to list of users who liked