Deleting a remote branch

后端 未结 4 1851
慢半拍i
慢半拍i 2020-12-18 06:04

When I perform branch -a:

$ git branch -a
* master
 remotes/origin/HEAD -> origin/master
 remotes/origin/hello
 remotes/origin/master
         


        
4条回答
  •  感动是毒
    2020-12-18 07:06

    You need to remove it from the remote with the following command:

    git push origin --delete hello
    

    When you are running git branch -rd origin/hello you are deleting your local branch only. The code above removes it from the origin repo.

提交回复
热议问题