From 5b37f41d94c44aa5946cecf1f2b2614fe79328e3 Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Wed, 5 Nov 2025 14:39:40 +0100 Subject: [PATCH 1/3] Fix syntax for linguist-generated attribute usage Corrected syntax for marking files as generated in .gitattributes. --- .../customizing-how-changed-files-appear-on-github.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md b/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md index a1a016cc1027..a71b83af8dd9 100644 --- a/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md +++ b/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md @@ -20,8 +20,13 @@ Use a _.gitattributes_ file to mark files that match a given "pattern" with the For example, to mark `search/index.json` as a generated file, add this line to _.gitattributes_: - ```text - search/index.json linguist-generated=true + ```gitattributes + search/index.json linguist-generated + ``` + + To unmark a file that would generally be considered _generated_, add this line to _.gitattributes_: + ```gitattributes + bootstrap.min.css -linguist-generated ``` ## Further reading From 8667fea650b05daf3a91fe8703156674fd9912ff Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Wed, 5 Nov 2025 15:09:47 +0100 Subject: [PATCH 2/3] Update customizing-how-changed-files-appear-on-github.md --- .../customizing-how-changed-files-appear-on-github.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md b/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md index a71b83af8dd9..bcaa0c1b3591 100644 --- a/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md +++ b/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md @@ -21,12 +21,12 @@ Use a _.gitattributes_ file to mark files that match a given "pattern" with the For example, to mark `search/index.json` as a generated file, add this line to _.gitattributes_: ```gitattributes - search/index.json linguist-generated + search/index.json linguist-generated=true ``` To unmark a file that would generally be considered _generated_, add this line to _.gitattributes_: ```gitattributes - bootstrap.min.css -linguist-generated + bootstrap.min.css linguist-generated=false ``` ## Further reading From 7391f2569e994723ddf2a82a56bca088fc519680 Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Wed, 5 Nov 2025 15:39:48 +0100 Subject: [PATCH 3/3] Update customizing-how-changed-files-appear-on-github.md --- .../customizing-how-changed-files-appear-on-github.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md b/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md index bcaa0c1b3591..a71b83af8dd9 100644 --- a/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md +++ b/content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md @@ -21,12 +21,12 @@ Use a _.gitattributes_ file to mark files that match a given "pattern" with the For example, to mark `search/index.json` as a generated file, add this line to _.gitattributes_: ```gitattributes - search/index.json linguist-generated=true + search/index.json linguist-generated ``` To unmark a file that would generally be considered _generated_, add this line to _.gitattributes_: ```gitattributes - bootstrap.min.css linguist-generated=false + bootstrap.min.css -linguist-generated ``` ## Further reading