I want to get the oldest tag in my tag Project. How do I get hold of it?
Asked
Active
Viewed 415 times
-1
-
2Possible 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 Answers
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