Git alias to prune all remotes at once
To prune all the remotes, just launch:
$ git remote prune $(git remote | tr "\n" " ")
As a Git alias:
$ git config --global alias.prune-remotes '!git remote prune $(git remote | tr "\n" " ")'
Written by Gregory Pakosz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#