Prune all git remotes -
does git have akin git remote prune --all
automatically prune remotes in repository? there more built-in (or elegant) bash loop i've used?
for remote in `git remote`; git remote prune $remote; done
there no such option. git remote prune
doesn't accept multiple remotes in same command line.
you can use xargs
-n
option, instead of using loop.
git remote | xargs -n1 git remote prune
see xargs man page more information
Comments
Post a Comment