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.

Say Thanks

1 Response
Add your response

736212 10200976756252420 836055407 o

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

over 1 year ago ·
Filed Under