How do I delete a Git branch locally and remotely?

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

    Delete remote branch

    git push origin :

    Delete local branch

    git branch -D

    Delete local branch steps:

    1. checkout to another branch
    2. delete local branch

提交回复
热议问题