Last active
January 13, 2018 20:37
-
-
Save boopathi/3c16a28e818f5ed5a82277ecf6581965 to your computer and use it in GitHub Desktop.
Cleanup git branches
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 -r | | |
awk '{print $1}' | | |
egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | | |
awk '{print $1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment