Last Updated: February 25, 2016
·
742
· Bruno Coimbra

Remove local references to remote branches that is no more in Git

into your git project directory execute

$ git remote prune --dry-run origin

This command will displays the local references to remote branches that have been removed.

If you want indeed remove the branches, just remove --dry-run option.