git branch -a shows
master
remotes/origin/master
remotes/upstream/bugfix/corrupted-deb
... (many more remotes/upstream branches)
The repository upstream no longer exists. How to delete the zombie branches remotes/upstream/bugfix/corrupted-deb etc for good?
File .git/config contains no more than
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@<myurl>
fetch = +refs/heads/*:refs/remotes/origin/*
Any intentional reference to upstream is gone since long.
The command git remote prune origin [https://stackoverflow.com/questions/8766525] doesn't affect upstream. The obvious variant git remote prune upstream results in fatal: 'upstream' does not appear to be a git repository ...