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