git how to list all commit for one file
https://stackoverflow.com/questions/3701404/list-all-commits-for-a-specific-file
The--followworks for a particular file
git log --follow filenameDifference 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).
Last updated
Was this helpful?