如何删除git中的本地分支? [英] How to delete a local branch in git?
本文介绍了如何删除git中的本地分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
git branch -d< branch_name>我想删除Git中的本地分支,
解决方案
如果您编辑分支&想删除它而不合并到你的主分支,你必须用 -D
选项强制删除它,而不是 -d $ c
$ p $ g $ git分支-D <分支名称>
I want to delete a local branch in Git but this failed:
git branch -d <branch_name>
解决方案
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 <branch_name>
这篇关于如何删除git中的本地分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文