what is it?
since version 2.23, git-blame has a feature to ignore certain commits. This feature is useful to ignore large formatting or apparently unimportant changes
how to
create a .git-blame-ignore file
# Navigate to your repository root
cd path/to/your/repo
# Create the .git-blame-ignore-revs file
touch .git-blame-ignore-revs
# Add the commit hashes of the revisions you wish to ignore
echo "commit_hash_here # Comment about why this commit is ignored" >> .git-blame-ignore-revsconfigure git to use the ignore file
# Set the blame.ignoreRevsFile configuration in your local git config
git config blame.ignoreRevsFile .git-blame-ignore-revsonce configured, git blame <FILENAME> and tools that use git blame should ignore the commits