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
git fetch git remote prune your_remote
your_remote - for example origin
Git 1.6.6 and above
This version introduced command that combines fetching and pruning.
git fetch --prune