2010-04-27 65 views

回答

8
git log --format=%an -- $file 

將向您顯示該文件的所有提交以及該提交的所有提交。所以你必須每行

一個作家另一種簡單的解決辦法是使用git shortlog

git shortlog -s -- $file # add -n to sort by number of commits 
0

這通常是我想:

git log --format="%ad %an" -- $file 

(包括提交日期)

相關問題