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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -