git blame (find changes in log)
How to find out when is a line added to a file?
git blame filename
- Show which commit and author last modified each line of a file.
git log -S searchString filename
- search for a change.
git log -G regex filename
- search for a change by regex.
See git help blame
and git help log
.