The easiest solution is to delete the branch on Bitbucket when you delete it locally (git push --delete origin mybranch
). Then just always run git fetch --prune
in other repos, and the branch will disappear there as well.
You can also set the git config option fetch.prune
(git config --global --add fetch.prune true
). Then git fetch
will always behave as if you specified --prune
.