Git: blame (find changes in log)

By Xah Lee. Date: . Last updated: .

Find When is a File Added

git log --diff-filter=A -- xfilename

Show which commit and author last modified each line of a file.

git blame xFilename

Search for a change

git log -S xSearchString xFilename

Search for a change by regex

git log -G xRegex xFilename

See git help blame and git help log

Git manage