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

前端 未结 11 2222
攒了一身酷
攒了一身酷 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:31

    All you need to do is

    $ git branch -rd origin/whatever 

    It's that simple. There is no reason to call a gc here.

提交回复
热议问题