在我当前的仓库中,我有以下输出:
$ 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
如何从分支列表中删除“remotes/public/master”?
更新,尝试了git push
命令:
$ git push public :master
fatal: 'public' does not appear to be a git repository
fatal: The remote end hung up unexpectedly