在我目前的回购中,我有以下输出:
$ git branch -a
* master
remotes/origin/master
remotes/public/master
Run Code Online (Sandbox Code Playgroud)
我想remotes/public/master从分支列表中删除:
$ git branch -d remotes/public/master
error: branch 'remotes/public/master' not found.
Run Code Online (Sandbox Code Playgroud)
此外,输出git remote是奇怪的,因为它没有列出public:
$ git remote show
origin
Run Code Online (Sandbox Code Playgroud)
如何从分支列表中删除"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
Run Code Online (Sandbox Code Playgroud)