DEV Community

Discussion on: 🙏 Please Add .gitattributes To Your Git Repository

Collapse
 
zeorin profile image
Xandor Schiefer

Another great use-case for .gitattributes is to mark certain text files as binary. I do this with lock files and other machine-generated files which should be committed to the repo.

This way, when looking through diffs in the history, the staging area, or even on hosted Git platforms, these files no longer add to the noise.