Which command removes the stale origin/old?
$ git branch -r origin/main origin/old # 'old' was deleted on the server
git branch -d oldgit fetch --prunegit remote update oldgit pull --no-tags
--prune deletes remote-tracking refs whose branches no longer exist on the remote. git branch -d old targets a local branch.