Git Blaming Ignore whitespace-only changes


Example

Sometimes repos will have commits that only adjust whitespace, for example fixing indentation or switching between tabs and spaces. This makes it difficult to find the commit where the code was actually written.

git blame -w

will ignore whitespace-only changes to find where the line really came from.