Skip to content

Instantly share code, notes, and snippets.

@Likk
Last active August 22, 2019 10:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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