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
More on Commits, branches and tags
How do you write a good commit message?BeginnerWhat is the difference between `git add .`, `git add -A` and `git add -u`?BeginnerHow do you commit only part of the changes in a file?BeginnerHow do you change the last commit message or add a forgotten file?BeginnerWhat is the difference between `git switch`, `git restore` and `git checkout`?BeginnerWhat is the difference between lightweight and annotated tags?Beginner