Как удалить неверную ссылку на удаленную ветку из Git?
В моем текущем репо у меня есть следующий вывод:
$ git branch -a
* master
remotes/origin/master
remotes/public/master
Я хочу удалитьremotes/public/master
из списка филиалов:
$ git branch -d remotes/public/master
error: branch 'remotes/public/master' not found.
Кроме того, выходgit remote
странно, так как его нет в спискеpublic
:
$ git remote show
origin
How can I delete 'remotes/public/master' from the branch list?
Обнови, попробовалgit push
команда:
$ git push public :master
fatal: 'public' does not appear to be a git repository
fatal: The remote end hung up unexpectedly