Remove Git Tracking Branches Whose Remote Branches Are Removed

Often you may find yourself with several local tracking branches that have been removed on the remote server. To delete these branches, use prune.

To see what will happen, start with *-n*.

$ git remote prune -n origin

Then, run again w/o -n.


CategoryComputing.SCM.Git