Created
May 4, 2020 13:05
-
-
Save sr2ds/7e8d3136e950a7878a14f7a89047afdb to your computer and use it in GitHub Desktop.
git Remove merged local branch
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
#!/bin/bash | |
git branch --merge | grep -v develop| grep -v master | awk '{ print $1 }'| while read branch; do git branch -D $branch; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment