https://stackoverflow.com/questions/3701404/list-all-commits-for-a-specific-filearrow-up-right
The--followworks for a particular file
--follow
git log --follow filename
Difference to other solutions given
Note that other solutions includegit log path(without the--follow). That approach is handy if you want to track e.g. changes in adirectory, but stumbles when files were renamed (thus use--follow filename).
git log path
--follow filename
Last updated 6 years ago