ChocoDeveloper
ChocoDeveloper

Reputation: 14588

Should I remove merged branches?

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.

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?

Upvotes: 1

Views: 245

Answers (1)

Prakash Murthy
Prakash Murthy

Reputation: 13067

You can delete the unwanted local branch with git branch -d feature-a

Preferable to delete unwanted local branches to avoid clutter.

Upvotes: 5

Related Questions