Created
February 8, 2016 20:16
-
-
Save kblok/a1d4d0d56bc8fb0f7be7 to your computer and use it in GitHub Desktop.
Revisions
-
kblok created this gist
Feb 8, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ #!/bin/bash git fetch origin git checkout develop git pull upstream develop git branch -r --merged develop | grep -v "origin/master$" | grep -v "origin/develop$" | grep "origin/*" | sed 's/\s*origin\///' | xargs -t -n 1 git push --delete origin