Interview Prep/Git & GitHub/Commits, branches and tags

How do you ignore a bulk-reformat commit in blame?

IntermediateConceptCommits, branches and tags
Answer

Put the commit SHA in a file and point Git at it. GitHub's blame UI automatically honours a .git-blame-ignore-revs file at the repo root.

echo "<sha>  # prettier reformat" >> .git-blame-ignore-revs
git config blame.ignoreRevsFile .git-blame-ignore-revs
All Git & GitHub questions Roadmap: Git & GitHub

More on Commits, branches and tags