Skip to content

Instantly share code, notes, and snippets.

@legovaer
Created August 13, 2015 08:43
Show Gist options
  • Select an option

  • Save legovaer/a174eec5a875b1bb0a04 to your computer and use it in GitHub Desktop.

Select an option

Save legovaer/a174eec5a875b1bb0a04 to your computer and use it in GitHub Desktop.
Display the list of tags of the current GIT repositoy with their dates
#!/bin/sh
# Display the list of tags of the current GIT repositoy with their dates
# Author: (www.)legovaer(.be)
GREEN='\033[0;32m'
NC='\033[0m'
git tag -l | sed 1d | \
while read i
do
DATE="$(git log -1 --format=%ai $i)"
printf "${GREEN}[$i]${NC} ${DATE}\n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment