RSS Amplifier

Jeremie's Publication · Jul 29, 2026

Clean Up Local Git Branches

0
Sign in to vote or save

Jérémie Litzler · Jeremie's Publication

Flowers of a magnolia tree
Photo by Francesco Ungaro.

As I was working on my Vue and Supabase Boilerplate project, I completed many features. I needed to have a script that would remove any local branch not named main or develop or that wasn’t the checked-out branch or that didn’t have a remote equivalent.

Yes, what follows will remove any branch that you may have created and not yet pushed ⚠️. So be careful.

Let’s see how to speed up the clean-up process.

⬇️⬇️⬇️
Let’s review this in the full article

Originally published on iamjeremie.me

Thanks for reading my publication! This post is public so feel free to share it.

Share

Read the original on iamjeremie.substack.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.