Created
December 17, 2020 10:48
-
-
Save nsisodiya/1e984c113fc583c627b46e63f7a409a4 to your computer and use it in GitHub Desktop.
Delete all remote git branch which are matching a given name
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 -r | cat | grep sandesh | while read i | |
do | |
git push origin --delete $(echo $i | sed 's/\origin\///g') | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment