git clear remote branch 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 clear remote branch
git remote prune origin
git fetch origin --prune
git fetch origin --prune
git remote prune origin