Skip to content

Instantly share code, notes, and snippets.

@doxas
Last active March 10, 2021 02:26
Show Gist options
  • Save doxas/cc15a8d75284b9220ec75107917f086b to your computer and use it in GitHub Desktop.
Save doxas/cc15a8d75284b9220ec75107917f086b to your computer and use it in GitHub Desktop.
delete branch --marged
$ # master と develop を除く merge 済みのブランチを一括削除する
$ git branch --merged master | grep -vE '^\*|master$|develop$' | xargs -I % git branch -d %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment