github supports .git-blame-ignore-revs to ignore certain commits in blame view, add the coding style change commit to this file Can be used locally too with: $ git blame --ignore-revs-file .git-blame-ignore-revs