-1

I want to get the oldest tag in my tag Project. How do I get hold of it?

Kunal gupta
  • 481
  • 2
  • 7
  • 19
  • 2
    Possible duplicate of https://stackoverflow.com/questions/6269927/how-can-i-list-all-tags-in-my-git-repository-by-the-date-they-were-created – YesThatIsMyName Oct 25 '19 at 12:04

1 Answers1

1

For only the oldest (not the whole sorted list) you could output it with

git for-each-ref --sort=creatordate --count=1 refs/tags

then if you need a specific format, check the --format option.

Romain Valeri
  • 19,645
  • 3
  • 36
  • 61