Skip to content

Instantly share code, notes, and snippets.

@Likk
Last active August 22, 2019 10:42
Show Gist options
  • Save Likk/84835cac01e870e01f60 to your computer and use it in GitHub Desktop.
Save Likk/84835cac01e870e01f60 to your computer and use it in GitHub Desktop.
現在作業中のブランチにマージ済みのローカルブランチをローカルからもリモートからも消すワンライナー
git branch --merged | sed 's/\(^ \+\| \+$\)//g' | perl -nlE ' `git push --delete origin $_; git branch -d $_`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment