- 自分メモ
ブランチの一覧
-
ローカル
consolegit branch
-
リモート
consolegit branch -r
ブランチ削除
-
ローカル
consolegit branch --delete $branch_name または git branch -d $branch_name
-
リモート
consolegit push origin :$branch_name または git push --delete origin $branch_name
マージ済みのブランチを一括で削除する
-
ローカル
consolegit branch --merged | grep -v 'master' | grep -v '* ' | xargs git branch --delete
-
リモート
consolegit branch -r --merged | grep -v 'origin/master' | grep -v '\->' | awk -F'/' '{print $NF}' | xargs git push --delete origin