https://clintmcmahon.com/blog/delete-all-local-branches How do delete all local git branches except main and develop February 10, 2026 Over time my git branches on my local machine get out of control. Here's the command to delete all your local git branches except main and develop. #git