Skip to content

Instantly share code, notes, and snippets.

View RespectTH123's full-sized avatar
🏠
Working from home

RespectTHz RespectTH123

🏠
Working from home
  • 173 หมู่3 ต.หนองบัว อ.เมือง จ.อุดรธานี 41000
View GitHub Profile
@RespectTH123
RespectTH123 / gist:f19a5952c07a32bce9ea79b88623972e
Created July 27, 2026 13:04 — forked from qrush/gist:5301799
spring clean your git repos!
# remove any bad refs
git remote prune origin
# pipe into bash and auto-delete any branches that have been merged into master!
git log master --pretty=format:'%d' | grep '^ (origin' | tr -d ' ()' | sed 's/origin\//git push origin :/'