2016-02-08 65 views

回答

1

您可以使用下面的命令:

git log --no-merges --stat --author="User" --name-only --pretty=format:"" | sort -u

0

經過git log輸出,並查找作者字段:

git log --author 'marcus' 

會給你一個作者的所有git的日誌條目其中包含marcus;請注意,這裏可以使用正則表達式。

git log --author marcus -p --name-only --pretty='' 

真的會只給你的文件名,但無序,也有重複

git log --author marcus -p --name-only --pretty=''|sort|uniq 

會解決。

一般來說,我會說

git log --author marcus -p 

是最有用的。

相關問題