Github & Hide Files from Commit Diffs

This is a really nice tip for tidying up git diff‘s on Github (I think it’ll work for Gitlab etc too), you can add the following line to .gitattributes file:

dist/* linguist-generated

and this will hide all files in the dist/ directory from the commit diff.