I have tag names with pattern; YYYYYMM.{4 digits autoincrement}, e.g;
I want to keep the track of tags on;
last two months
in case the branch does not receive any commit within two months, keep the ten tags
git tag | sort -n | grep -v "$(date +%Y%m)" | grep -v "$(date --date='-1 month' +%Y%m)" | head -n -10 | xargs -I % git push -d origin %