How to delete a local branch in git?

前端 未结 3 1296
南旧
南旧 2021-01-16 17:04

I want to delete a local branch in Git but this failed:

git branch -d 
3条回答
  •  -上瘾入骨i
    2021-01-16 17:48

    If you edit your branch & want to delete it without merging it to your master branch, you have to force delete it with the option -D instead of -d.

    git branch -D 
    

提交回复
热议问题