Skip to content

Instantly share code, notes, and snippets.

@fsouza
Created March 15, 2011 15:16
Show Gist options
  • Save fsouza/870862 to your computer and use it in GitHub Desktop.
Save fsouza/870862 to your computer and use it in GitHub Desktop.
Remove git multiple git branches
#!/bin/bash
branches=("")
x=0;
while [ $x != ${#branches[@]} ]
do
git push origin :${branches[$x]}
let "x = x + 1"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment