Add 2 aliases to ~/.gitconfig file.
- deletes all local branches which were deleted remotely.
git cleanup- switches to seleted branch (
masterby default) - pulling changes from remote server
- deletes all local branches which were deleted remotely
git gogit go any-custom-branch-name