如何在 git 中查找文件的最近提交者?

poo*_*raj 4 git blame

有没有办法找到谁最近在 git 中更改了文件?

例如,我需要最后 5 个人更改了此文件。我尝试过git annotategit blame但找不到我想要的东西。

Flo*_*low 5

git Shortlog 做你想要的:

git shortlog -sne <filename>
Run Code Online (Sandbox Code Playgroud)