gitattributes
Table of Contents
What is gitattributes for? discussion
A gitattributes file is a simple text file that gives attributes to pathnames. For example, Git LFS uses gitattributes to manage large files selectively.

filter= attribute is specified to *.txt pathname.
*.png filter=lfs diff=lfs merge=lfs -text
.gitconfig[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true