How do I delete a Git branch locally and remotely?

后端 未结 30 3671
被撕碎了的回忆
被撕碎了的回忆 2020-11-21 04:11

I want to delete a branch both locally and remotely.

Failed Attempts to Delete a Remote Branch

$ git branch -d         


        
30条回答
  •  礼貌的吻别
    2020-11-21 04:54

    Before executing

    git branch --delete 
    

    make sure you determine first what the exact name of the remote branch is by executing:

    git ls-remote
    

    This will tell you what to enter exactly for value. (branch is case sensitive!)

提交回复
热议问题