Skip to content

Instantly share code, notes, and snippets.

@joseche
Created July 18, 2023 18:36
Show Gist options
  • Select an option

  • Save joseche/dfff2fc70166a8b81a16cec036ef2073 to your computer and use it in GitHub Desktop.

Select an option

Save joseche/dfff2fc70166a8b81a16cec036ef2073 to your computer and use it in GitHub Desktop.
git show-ref --tags --dereference | \
awk '/^.* refs\/tags/ { print $2 }' | \
while read -r ref; do
git show --no-patch --format="%d, %cd" --date=iso "$ref" | \
sed -ne 's/ (tag: \([^)]*\))/\1/p'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment