Cleanup local Git from deleted remote branches

By | January 9, 2017

When working with Git after some time local repository has excess branches which create a mess.

There is an easy way to remove branches from local repo that were deleted from remote.

Before Git 1.6.6

Two steps are needed: fetch and prune

your_remote – for example origin

Git 1.6.6 and above

This version introduced command that combines fetching and pruning.

Leave a Reply

Your email address will not be published.