Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git commit stats per file

Tags:

git

I want to get all commit info for every author, but I want to do this per file. I am a bit lost with the git documentation. Anyone know how to go about this? I want to do this for a certain period of time, for example for 2014-2016.

like image 375
dimitris93 Avatar asked Nov 09 '22 09:11

dimitris93


1 Answers

If by "all commit info" you mean commits history, then git log --since <date> --until <date> <file_path> will do the job.

You can also filter commits made by certain author using --author option.

like image 74
qzb Avatar answered Nov 15 '22 05:11

qzb