prune origin git code example
Example 1: git remove deleted remote branches
git fetch origin --prune
Example 2: git prune local branches
npx git-removed-branches --prune
git fetch origin --prune
npx git-removed-branches --prune