How do I delete a Git branch locally and remotely?

后端 未结 30 4220
被撕碎了的回忆
被撕碎了的回忆 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:55

    In addition to the other answers, I often use the git_remote_branch tool. It's an extra install, but it gets you a convenient way to interact with remote branches. In this case, to delete:

    grb delete branch
    

    I find that I also use the publish and track commands quite often.

提交回复
热议问题