3

I'm adding eslint/prettier to my repository for code formatting, styling, etc. The issue is that when people run git blame I will now be know as the author of tons of lines of code in our project.

I found this blog post which shows that I can use git blame --ignore-rev to ignore a certain commit on git blame but that requires people to know that I've made this commit and then it also requires them to lookup or use that hash every time.

Is there a way, either when I make the commit or after I've made the commit, to keep the author of those lines of code as they are before the linting? I don't want to have no author, I just wanted them to remain unchanged.

Brady Dowling
  • 4,920
  • 3
  • 32
  • 62

0 Answers0