Skip to content

Instantly share code, notes, and snippets.

View sebas-alem-f's full-sized avatar
:octocat:

Sebastian Alemán Fierro sebas-alem-f

:octocat:
View GitHub Profile
@TSMMark
TSMMark / delete_local_branches.sh
Last active February 20, 2023 05:41
Delete local branches that don't exist on remote/origin !USE AT YOUR OWN RISK!
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -r -n 1 git branch -D