我应该删除合并的分支机构吗? [英] Should I remove merged branches?

查看:90
本文介绍了我应该删除合并的分支机构吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始研究'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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆