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.
Written by Jan Ahrens
Related protips
1 Response
good thing to avoid looking on the whitespace changes. Time saver! Thx
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Whitespace
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#