How to delete a local branch in git?

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

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

git branch -d 
3条回答
  •  春和景丽
    2021-01-16 18:01

    Your command to delete a branch is correct:

    git branch -d 
    

    But you may have an error message indicating you need to use the -D option to force the deletion of the branch:

    git branch -D 
    

提交回复
热议问题