Skip to content

Commit 5879507

Browse files
Clarify syntax for linguist-generated attribute (#41130)
Co-authored-by: Sharra-writes <[email protected]>
1 parent ac353d7 commit 5879507

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

content/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ Use a _.gitattributes_ file to mark files that match a given "pattern" with the
2020

2121
For example, to mark `search/index.json` as a generated file, add this line to _.gitattributes_:
2222

23-
```text
24-
search/index.json linguist-generated=true
23+
```gitattributes
24+
search/index.json linguist-generated
25+
```
26+
27+
To unmark a file that would generally be considered _generated_, add this line to _.gitattributes_:
28+
```gitattributes
29+
bootstrap.min.css -linguist-generated
2530
```
2631

2732
## Further reading

0 commit comments

Comments
 (0)