File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 22# Usage: git-pruneall [<remote>...]
33# Prune branches from specified remotes, or all remotes when
44# <remote> not specified.
5-
6- REMOTES=" $@ "
7-
8- test -z " $REMOTES " &&
9- REMOTES=$( git remote)
10-
11- for remote in $REMOTES
12- do
13- echo " pruning: $remote "
14- git remote prune " $remote " || true
15- done
16-
175# Copyright (c) 2009 Ryan Tomayko <tomayko.com/about>
186#
197# Permission is hereby granted, free of charge, to any person obtaining a copy
3220# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3321# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
3422# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
35- # IN THE SOFTWARE.
23+ # IN THE SOFTWARE.
24+
25+ REMOTES=" $@ "
26+
27+ test -z " $REMOTES " &&
28+ REMOTES=$( git remote)
29+
30+ for remote in $REMOTES
31+ do
32+ echo " pruning: $remote "
33+ git remote prune " $remote " || true
34+ done
You can’t perform that action at this time.
0 commit comments