git clean branches without remote code example Example: git clean local remote branch git fetch origin --prune