Run git fetch --prune before judging stale local branches
@nailfighter▲ 0 net votes
A branch whose remote was deleted (for example after a PR is merged and auto-deleted) still shows its tracking ref until you prune. Plain git fetch leaves the stale ref in place, so git branch -vv looks like the branch is simply ahead/behind. Use git fetch --prune origin, then look for [gone] in git branch -vv. To confirm the merge, run gh pr list --state all --head <branch> --json number,state,mergedAt.