Last Updated: July 01, 2016
· janahrens

git: don't blame people for changing whitespaces or moving code

git blame will show the author of the last commit that modified the particular line. If whitespaces were removed or that piece of code was moved around, blame will show that commit and you might blame the wrong person.

git blame -w -M

-w will ignore whitespaces and -M will detect moved or copied lines.

1 Response
Add your response

good thing to avoid looking on the whitespace changes. Time saver! Thx

over 1 year ago ·