You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The added `.git-blame-ignore-revs` file can be used with `git blame`
to ignore certain commits when blaming, which is useful
when we want to commit large formatting changes without messing up
the output of `git blame`. Also, by adding this file to the repo
`GitHub` will pick it up automatically and ignore the listed commits.
Usage:
`git blame --ignore-revs-file .git-blame-ignore-revs somefile.ext`
However, it is highly recommended that you configure `git blame`
locally to always ignore the commits specified in
`.git-blame-ignore-revs`. You can do this by running the following
from the repository's root:
`git config blame.ignoreRevsFile .git-blame-ignore-revs`.
From then on, you can just run `git blame somefile.ext` and ignoring
will also work for git porcelains and integrations automatically.
0 commit comments