Overview
If the origin remote has branch master and then switches to use main as the default branch, then the local view of origin branches will contain both as the general fetch/pull process is only additive and does not delete.
Deliverables
Notes
https://stackoverflow.com/questions/36358265/when-does-git-refresh-the-list-of-remote-branches
Overview
If the
originremote has branchmasterand then switches to usemainas the default branch, then the local view oforiginbranches will contain both as the general fetch/pull process is only additive and does not delete.Deliverables
git remote update ${origin} --pruneand re-try (and then really give up and throw an exception on the retry if the problem persists).Notes
https://stackoverflow.com/questions/36358265/when-does-git-refresh-the-list-of-remote-branches