diff options
Diffstat (limited to '.bash_profile')
-rw-r--r-- | .bash_profile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.bash_profile b/.bash_profile index 69caecd..c6f4d6e 100644 --- a/.bash_profile +++ b/.bash_profile @@ -45,10 +45,11 @@ function pm() { } function killmerged() { - for b in $(git branch --merged HEAD --no-contains HEAD|grep -vE 'stage|master|svn|develop|uat'); do + local remote="${1:-origin}" + for b in $(git branch --merged HEAD --no-contains HEAD|grep -vE 'stage|master|svn|develop|uat|stable'); do b="${b##+( )}" b="${b%%+( )}" - git branch -d $b && git push origin :$b + git branch -d $b && git push "$remote" :$b done } |