Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to find recent committers of a file in git?

Tags:

git

blame

Is there a way to find who recently changed a file in git?

For exaxmple, I need last 5 people who changed this file. I tried git annotate and git blame but I could not find the exact thing I wanted.

like image 207
Poomalairaj Avatar asked Oct 27 '25 12:10

Poomalairaj


1 Answers

git shortlog does what you want:

git shortlog -sne <filename>
like image 180
Flow Avatar answered Oct 30 '25 02:10

Flow