Skip to content

Instantly share code, notes, and snippets.

View dchueri's full-sized avatar
💫

Diego Chueri dchueri

💫
View GitHub Profile
@dchueri
dchueri / clear-branches.sh
Created January 2, 2023 01:30
Clear Local Branches Script
echo "Starting..."
branch=$1
delete()
{
echo "Deleting branches..."
git branch --list | \
egrep --invert-match "($branch|\*)" | \
xargs git branch -D
echo "Done!"
}