我应该删除合并的分支机构吗? [英] Should I remove merged branches?
问题描述
我想开始研究'feature a',所以我创建了一个新分支 git checkout -b feature-a
。当功能完成并正常工作后,我将它合并到主 git checkout master; git merge feature-a
。
I wanted to start working on 'feature a', so I created a new branch git checkout -b feature-a
. When the feature was finished and working correctly, I merged it in master git checkout master; git merge feature-a
.
问题在于现在 git branch
仍显示'feature-a',我不想因为我认为它很快就会变得乱七八糟,这个列表太长了。
The problem is that now git branch
still shows 'feature-a', which I don't want beacause I think this will soon become a mess, the list will bee too long.
有没有办法删除它从名单?我应该这样做吗?
Is there a way to remove it from the list? Should I do that?
推荐答案
您可以使用删除不需要的本地分支git branch -d feature- a
最好删除不需要的本地分支以免混乱。
Preferable to delete unwanted local branches to avoid clutter.
这篇关于我应该删除合并的分支机构吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!