Cleanup Orphaned Git Tracking Branches
By Sean Grimes | Jun 19, 2019 | git
A very common development strategy with Git is to create a new branch for every feature and bug you work on, then once the code passes code review, to then merge it to the correct shared branch. The problem then becomes that you end up with a bunch of branches over time that you no longer need. We can use some simple shell commands to clean up these branches.