recover deleted branch git remote code example
Example 1: git remove deleted remote branches
git fetch origin --prune
Example 2: branch is deleted from remote but still showing git
git remote prune origin
git fetch origin --prune
git remote prune origin