export-ignore

git archive の対象から外すための属性。

export-ignore

Files and directories with the attribute export-ignore won’t be added to archive files.

Git - gitattributes Documentation

下記の感じで使った。

/.github/         export-ignore
/.gitattributes   export-ignore
/.gitignore       export-ignore
/docs/            export-ignore

https://github.com/toshimaru/sublime-wakame/blob/785d142355cafd8b54994264a462fd51fafaeb39/.gitattributes#L1-L3

linguist-generated

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.

Customizing how changed files appear on GitHub - GitHub Docs

search/index.json linguist-generated=true

関連記事