Exclude a folder from your git diff

Unfortunately I have my /dist/ folder in my repository (Long story), but it makes looking at differences in git a tad of a nuisance.
Git actually has an exclude pattern which removes this noise and makes doing diffs a lot cleaner. I just updated my git alias in my ~/.gitconfig

	df = diff --color-words -- ":(exclude)dist"

What does this mean?

Well in my terminal I can do:

$ git df

Which will show all my changes (with coloured words rather than line changes but thats a different story) while excluding the /dist/ folder ๐ŸŽ‰


What yโ€™all thought

Have something to say?