Delete local references to remote branches that have been deleted upstream

git fetch

  • Download objects and refs from a remote repository.
    More information: <https://git-scm.com/docs/git-fetch>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git fetch --prune

click the source code to copy install git fetch on any operating system with command-not-found.com