Last Updated: February 25, 2016
·
640
· gpakosz

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" " ")'