Skip to content

Instantly share code, notes, and snippets.

View ScalesLuong's full-sized avatar
🎯
Focusing

Quang Luong ScalesLuong

🎯
Focusing
View GitHub Profile
@ScalesLuong
ScalesLuong / git-cleanup.sh
Created September 15, 2026 01:36
delete merged local branches
#!/usr/bin/env bash
git branch --merged main | grep -vE '^\*|main|master' | xargs -r git branch -d