Git · Middle · Question 36 of 75
What does .git-blame-ignore-revs help with?
- 1Excluding files from being tracked by Git
- ✓Correct answer: Hiding mass reformatting commits from
git blame - 3Ignoring commits during
git bisect
Explanation
After running Prettier on the whole codebase, every line blames that commit. Listing it in the file (with blame.ignoreRevsFile) makes blame skip to the real authors; GitHub respects it too.