I'm following Feature Branch Workflow to work with git. After days of work, there are always a lot of local branches in local. Much of them are useless as they are already merged into upstream.
So I need to remove these unused branches in period, the solution I use currently is
- Filter merged branch with
git branch --merged
- Then removed the list branches at once.
This solution is a little messy, is there a easier way to clean them up?