`git tag` sorted in chronological order of the date of the commit pointed to

前端 未结 7 1757
礼貌的吻别
礼貌的吻别 2020-12-13 12:44

The output from git tag is ordered alphabetically. I would like it to be ordered chronological (the date of the commits they are assigned to, not the date on wh

7条回答
  •  难免孤独
    2020-12-13 13:06

    In git 2.3.3 I can just do this to get them sorted by date:

    git tag --sort version:refname
    

    PS: For the record, I also answered the same thing on a duplicate question

提交回复
热议问题