Skip to content

Latest commit

 

History

History

git-remotes-prune

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

git remotes-prune

For each remote branch, prune it

Git alias:

remotes-prune = !git remote | xargs -n 1 git remote prune

Example:

git remotes-prune

There's no way to tell git remote update to prune stale branches, and git remote prune does not currently understand --all.

So this shell command gets all remotes, and for each one, prunes it.