Safely deletes local branches with no upstream and no un-pushed commits
-
Updated
Dec 26, 2022 - Shell
Safely deletes local branches with no upstream and no un-pushed commits
A smart shell script to automatically delete stale Git branches — keeping only active ones and your main branch. Perfect for large repos with hundreds of inactive branches.
Identifies branches 🌿 with commits ahead of the current branch
🌳 What’s in a name? It doesn’t matter. Find the name of a Git repository’s default branch with a POSIX-compliant shell script.
Script to automatically delete merged branches via CI.
Add a description, image, and links to the git-branches topic page so that developers can more easily learn about it.
To associate your repository with the git-branches topic, visit your repo's landing page and select "manage topics."