git tips: list commits where a file was modified
Nov 2, 2022
Sometimes we need to find out which commits changed particualr file.
We can ontain this information using command git log with flag — follow:
git log --follow -- filename
This will list all the commits where this file was modified in the foramt of command git log.