miniblog.
← Back to all posts
Wilfred Hughes
Mar 7, 2021 at 22:12
Today I learnt that you can tell GitHub which files in a repo are generated, so they're not shown in the default pull request view!
https://docs.github.com/en/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Customizing how changed files appear on GitHub - GitHub Docs
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.