Bookmark of 'Hide irrelevant data in your PRs - Dev notes'

Hide irrelevant data in your PRs - Dev notes TL;DR Today I learned that you can hide irrelevant changes from Github PRs. The syntax for .gitattributes can be tricky though. In my current project, it’s sometimes necessary to re-generate and commit a bunch of files to the repository. This can happen when you store some IaC or test data in the repository. Sample repository To demonstrate the problem, here’s an example repository: https://github.com/majk-p/nice-pr-diffs that features two PRs: The first one is hard to read https://github. (published )

@majkp@hostux.social shows how to hide large data files from your diffs with .gitattributes

Avatar
Proactive application of technology to business

My interests include technology, personal knowledge management, social change

Related