Try putting the refactoring commit in .git-blame-ignore-revs
$ git config blame.ignoreRevsFile .git-blame-ignore-revs
This is extremely useful if, for example, your team decided to introduce new automated style changes, and didn't want to completely clobber the history for blame. By specifying the commit that introduced the style change, actual "interesting" changes should be correctly attributed and the style change commit is ignored in the blame output.[0] https://github.com/git/git/blob/master/Documentation/RelNote...