Created
May 13, 2009 16:12
-
-
Save sml/111105 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
#!/bin/sh | |
git remote prune origin | |
branch_list=$(git branch -r | grep -v HEAD | grep -v master | sed s:origin/::) | |
until [ -z "$1" ] | |
do | |
branch_list=$(echo "$branch_list" | grep -v $1) | |
shift | |
done | |
for branch in $branch_list | |
do | |
git push origin :heads/${branch} | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment