Last active
August 22, 2019 10:42
-
-
Save Likk/84835cac01e870e01f60 to your computer and use it in GitHub Desktop.
現在作業中のブランチにマージ済みのローカルブランチをローカルからもリモートからも消すワンライナー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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