* New Crowdin translations by Github Action * Revert broken translated files to English * Revert broken translations * Revert broken translations * Revert more broket translations * Revert broken translation * Increase Node memory limit for running Jest * Allow Node to use more memory for Jest * Increase Node memory limit for running Jest Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: Chiedo <chiedo@users.noreply.github.com> Co-authored-by: James M. Greene <JamesMGreene@github.com>
1.3 KiB
1.3 KiB
title, intro, redirect_from, versions
| title | intro | redirect_from | versions | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Customizing how changed files appear on GitHub | To keep certain files from displaying in diffs by default, or counting toward the repository language, you can mark them with the `linguist-generated` attribute in a *.gitattributes* file. |
|
|
Use a .gitattributes file to mark files that match a given "pattern" with the specified attributes. A .gitattributes file uses the same rules for matching as .gitignore files. For more information, see PATTERN FORMAT in the Git documentation.
- Unless the .gitattributes file already exists, create a .gitattributes file in the root of the repository.
- Use the
linguist-generatedattribute to mark or unmark paths that you would like to be ignored for the repository's language statistics and hidden by default in diffs.
For example, to mark search/index.json as a generated file, add this line to .gitattributes:
search/index.json linguist-generated=true
Дополнительная литература
- "Generated code" in the Linguist documentation
- "Creating new files"