The year is almost over and the holidays are approaching, what a good time to say goodbye to your old stale branches. I know letting go of something is always hard, but don't sweat it. I'll teach you how to keep the things you need and
remove purge the rest.
Get a list of my local branches
git branch >> git_branches.txt
In the editor mark the branches that you want to keep
123-branch-to-remove * master * dev * keep-branch
Run the command bellow to verify the branches you want gone
cat git_branches.txt | grep "^[^\*].*"
If they are all good then run the same command and feed it into
git branch -D
cat git_branches.txt | grep "^[^\*].*" | xargs git branch -D
Enjoy the holidays, show this to your colleagues and be nice!