git branch -d gives warning

前端 未结 4 1453
一生所求
一生所求 2021-01-30 09:45

Just want to get a better understanding of the warning message after I deleted a local branch

warning: deleting branch \'old_branch\' that ha

4条回答
  •  臣服心动
    2021-01-30 10:24

    This is just warning you that you have changes pushed to the branch on origin, but they are not merged into master, so you are only deleting it locally.

    It is warning you that you no longer have a local copy of that branch, but it exists in origin

    If you want to delete the remote branch as well, use git push --delete origin old_branch

提交回复
热议问题