2009-12-30 54 views

回答

2

使用git-for-each-ref,如下所示:

$ git for-each-ref --count=3 --sort='-*authordate' refs/tags | 
    while read sha1 objtype refname; do 
    echo "$refname - $sha1" 
    GIT_PAGER=cat git log -1 $sha1 
    echo 
    done 
0

git tag -n會列出標籤旁邊的提交評論,但沒有日期。

相關問題