Skip to content

Instantly share code, notes, and snippets.

View mmozuras's full-sized avatar

Mindaugas Mozūras mmozuras

View GitHub Profile
@mmozuras
mmozuras / gist:5597484
Last active December 17, 2015 10:49 — forked from spajus/gist:5213420
Delete all git tags locally and remotely based on their name length
for t in `git tag`
do
if [[ ${#t} -lt 20 ]]; then
echo keeping $t
else
git push origin :$t
git tag -d $t
fi
done