How to forcefully delete a remote branch in GitHub?

后端 未结 2 1592
北恋
北恋 2021-02-07 11:13

I have 2 remote branches :

 - pending-issues-in-project
 - new-issues-in-project

I tried to delete pending-issues-in-project lik

2条回答
  •  被撕碎了的回忆
    2021-02-07 11:33

    You have to do:

    git remote prune origin
    

    to remove that remote tracking branch in your local git repository ( prune removes any branch that does not exist in the remote origin anymore). After that, you will not see it under git branch -a

提交回复
热议问题