How do you remove an invalid remote branch reference from Git?

前端 未结 11 2226
攒了一身酷
攒了一身酷 2020-11-28 16:43

In my current repo I have the following output:

$ git branch -a
* master
  remotes/origin/master
  remotes/public/master

I want to delete <

11条回答
  •  渐次进展
    2020-11-28 17:34

    git gc --prune=now is not what you want.

    git remote prune public
    

    or git remote prune origin # if thats the the remote source

    is what you want

提交回复
热议问题