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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -