// Personal website of Chris Smith

Git » Ignore revisions in git-blame

Create a file containing the full commit object names to ignore. Usually it’s named .git-blame-ignore-revs. Comments and whitespace are ignored.

# Reformatting
7cc8f43b2b8bbad1af306f50e1da2f28bf5d2046

Then either specify it with --ignore-revs-file each time:

git blame --ignore-revs-file .git-blame-ignore-revs -- ...

Or configure git to always use it:

git config blame.ignoreRevsFile .git-blame-ignore-revs