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

前端 未结 7 1756
礼貌的吻别
礼貌的吻别 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 12:59

    As Alexander pointed out it should be

    git tag --sort=taggerdate
    

    for correct chronological order.

    edit: * iff you're interested in the date the tags where pushed, if you're interested in the date of the commits, it should be "commiterdate"

提交回复
热议问题