Случайно была создана ветка remotes/upstream/upstream/develop
.Upstream находится под контролем GitHub.Сбой стандартной команды удаления:
$ git fetch --all
$ git branch -a
* develop
master
remotes/origin/HEAD -> origin/develop
remotes/origin/develop
remotes/origin/master
remotes/upstream/develop
remotes/upstream/master
remotes/upstream/upstream/develop
$ git push upstream --delete upstream/develop
error: unable to delete 'upstream/develop': remote ref does not exist
error: failed to push some refs to 'git@github.com:...'
.git/config
имеет стандартную строфу
[remote "upstream"]
url = git@github.com:...
fetch = +refs/heads/*:refs/remotes/upstream/*