git prune remote branch code example Example: git remove deleted remote branches git fetch origin --prune