Blame After a Formatting Commit
After a repository-wide reformat, git blame attributes every line to the formatting commit. How do you see the real authors again?
git blame
Choose one answer
Run git blame -w, which hides every commit older than a year from the output.
git blame -w
Use git log --follow instead of blame.
git log --follow
blame
List it in .git-blame-ignore-revs for --ignore-revs-file.
.git-blame-ignore-revs
--ignore-revs-file
Revert the formatting commit and run blame again.