git showing branches that are not on github anymore

git, git-branch, github

Solution

If there are 'dead' branches that were deleted from another developer/machine, you need to prune your local version of the repository:

git remote prune origin

Problem

after running ``` git fetch ``` I can see some branches which are not (anymore) on GitHub (using `git branch -a`). Why is this? How can I resolve this? It's especially uncomfortable in git-cola, where I can see all these dead branches.

Original source

Related problems