main, master, develop 以外のローカルブランチを一括削除するワンライナー。
git branch | grep -v main | grep -v master | grep -v develop | xargs git branch -D
Go to list of users who liked
More than 3 years have passed since last update.
main, master, develop 以外のローカルブランチを一括削除するワンライナー。
git branch | grep -v main | grep -v master | grep -v develop | xargs git branch -D
Register as a new user and use Qiita more conveniently
Go to list of users who liked