From a0618e8bed25b7d2ccda5fa8cbfe570562a7f2d6 Mon Sep 17 00:00:00 2001 From: Ryan Shaw Date: Tue, 24 May 2022 17:43:38 -0600 Subject: [PATCH 1/2] show how to always use the git blame ignore file --- .../working-with-files/using-files/viewing-a-file.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/repositories/working-with-files/using-files/viewing-a-file.md b/content/repositories/working-with-files/using-files/viewing-a-file.md index f32c7c5cf141..d94bcd78541f 100644 --- a/content/repositories/working-with-files/using-files/viewing-a-file.md +++ b/content/repositories/working-with-files/using-files/viewing-a-file.md @@ -84,4 +84,10 @@ This can be useful when a few commits make extensive changes to your code. You c git blame --ignore-revs-file .git-blame-ignore-revs ``` +Or to configure your local git so it always ignores the revs in that file: + +```shell +git config blame.ignoreRevsFile .git-blame-ignore-revs +``` + {% endif %} From 74def6191de490830f2f2b544412544e2350e6d2 Mon Sep 17 00:00:00 2001 From: Janice Date: Tue, 28 Jun 2022 17:39:07 +0200 Subject: [PATCH 2/2] Update content/repositories/working-with-files/using-files/viewing-a-file.md --- .../working-with-files/using-files/viewing-a-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/repositories/working-with-files/using-files/viewing-a-file.md b/content/repositories/working-with-files/using-files/viewing-a-file.md index d94bcd78541f..66350e3d3e05 100644 --- a/content/repositories/working-with-files/using-files/viewing-a-file.md +++ b/content/repositories/working-with-files/using-files/viewing-a-file.md @@ -84,7 +84,7 @@ This can be useful when a few commits make extensive changes to your code. You c git blame --ignore-revs-file .git-blame-ignore-revs ``` -Or to configure your local git so it always ignores the revs in that file: +You can also configure your local git so it always ignores the revs in that file: ```shell git config blame.ignoreRevsFile .git-blame-ignore-revs